Avatar ·

How to streamline the dates on the graph in an increase in the order?

📁 python, pandas, matplotlib

Est CSV File with a number of sick people over the past year, but it has an incorrect structure, i.e. At first there is today's date, then yesterday, etc.

how to build the correct schedule, so that from the past to the present, and not vice versa?

   import  PANDAS  as  pd  import  matplotlib.pyplot  as  plandata = pd.read_csv ( 'Data.txt' ) plt.plot (Data [ '"call" ]) plt.show ()     

tried: data = Data [::-1]