Python Forum

Full Version: Graphs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been trying to make a graph but failing. Anyone know which method is best for this?

Using the code cell below, plot an appropriate graph to show the number of sequences collected in each calendar month
%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
spike = pd.read_csv('spike_proteins.csv')
spike
plt.plot()
I think there are more tutorials on plotting with matplotlib than any other python package or library. Go do a tutorial or two and you will see why you are not getting a plot.
Line 6: you aren't actually passing anything to plot, so what do you expect to happen?
Not only do you need plot() function, you also need show() function to show the graph