I need to create a simple line chart showing the number of infected people per day in the US. The CSV file I'm using contains 212 countries in 212 different columns, but the line chart must show only infected people in the US and the date. I managed to print the graph accordingly, but for some reason it does not have the timeline in the x axis, and I was wondering how I could replace the numbers with the dates. I'm attaching a screenshot of my graph as well.
Here is the code for the graph:
dataframe = pd.read_csv('total_cases.modified2.csv')
plt.figure(figsize=(10,6))
plt.title('Covid19')
plt.xlabel('date')
plt.ylabel('Number of infected people')
plt.plot(dataframe['United States'], color='green')
plt.show()
This is how the CSV columns look like
Thank you!