import pandas as pd df: pd.DataFrame = pd.read_csv("avocado.csv") df.set_index("Date", inplace=True) df.sort_index(inplace=True) print(df.index)
References
https://pythonprogramming.net/graph-visualization-python3-pandas-data-analysis/
import pandas as pd df: pd.DataFrame = pd.read_csv("avocado.csv") df.set_index("Date", inplace=True) df.sort_index(inplace=True) print(df.index)
References
https://pythonprogramming.net/graph-visualization-python3-pandas-data-analysis/