#For one column import matplotlib.pyplot as plt df['Name Of Column'].plot() plt.show() #For Multiple Columns import matplotlib.pyplot as plt df[['Name Of Column1', 'Name Of Column2']].plot() plt.show()
Here is what the above code is Doing:
1. We’re using the plot() method on the df object.
2. We’re passing in a list of column names to plot().
3. We’re calling the show() method to display the plot.