JustAnotherDataEnthusiast

660
reputation
8
19

Create a line chart

plt.figure(figsize=(10, 6)) plt.plot(result['year'].astype(str) + '-' + result['month'].astype(str), result['count_1s'], marker='o') plt.xlabel('Date (Year-Month)') plt.ylabel('Count of 1s') plt.title('Counts of Value 1 over Time') plt.xticks(rotation=45) plt.grid(True) plt.tight_layout()

Show the plot

plt.show()