How to streamline the dates on the graph in an increase in the order?
📁 Advanced Python Topics, pandas, matplotlib
There is a CSV file with a number of sick people over the past year, but it has an incorrect structure, i.e. first there is today's date, then yesterday, etc.
How to build the correct graph, so that from the past to the present, and not vice versa?
import pandas as pd
import matplotlib.pyplot as plt
data = pd.read_csv('Data.txt')
plt.plot(data['"call"'])
plt.show()
I tried: data = data[::-1]
No answers yet.
Log in to leave an answer
Blogs
Top Mistakes of Beginner Swift Developers and How to Avoid Them
Monorepo with Swift: Code Organization in Practice
JavaScript and Gentlemen: Why You Need Design Patterns (and How They'll Simplify Your Life)
Python Developer Jobs: Where to Find Work in 2024