indexes of the rows of the DataFrame are used as the x-axis.
import pandas
from matplotlib import pyplot
df = pandas.read_csv("flights.csv")
df.plot.line(y="passengers")
pyplot.savefig("flights-line-2.png")
In this case, the line plot will look like the following:









































0 Comments