I can not build a display on the graph of the 3rd column from the csv file depending on the Date column.
Sample data (with column names) in a CSV file:
Date,1,2,3,4,A,B 2010-01-04,213.429998,214.499996,212.38000099999996,214.009998,123432400,27.727039 Date - the first column with dates, a['3'].plot() - display the 3rd column with (it is signed like "3") - does not work.
import pandas as pd import matplotlib.pyplot as plt a = pd.read_csv('C:/Users/II/Downloads/222.csv', sep=',', encoding='latin1', parse_dates=['Date'], dayfirst=True, index_col='Date') a['3'].plot() 