How to do a line plot using MatplotlibSep 1st 2021 • 1 minHere is the simplest method to do a line plot.import matplotlib.pyplot as plt import pandas as pd # We create our dataframe df = pd.DataFrame(index=range(0,10), data={"col1" : range(0,10)}) fig, axes = plt.subplots(1,1, figsize=(8,6)) # We do a line plot on the axes axes.plot(df.index, df["col1"]) # Fixing the layout to fit the size fig.tight_layout() # Showing the plot plt.show()The method using matplotlibMore on plotsIf you want to know more about how to add labels, plot different types of plots, etc... checkout the other articles I wrote on the topic, just here :Matplotlib - The Python You NeedWe gathered the only Python essentials that you will probably ever need.The Python You Need