Python Forum
Graphs - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Graphs (/thread-31305.html)



Graphs - Tink - Dec-03-2020

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()



RE: Graphs - deanhystad - Dec-03-2020

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.


RE: Graphs - ndc85430 - Dec-03-2020

Line 6: you aren't actually passing anything to plot, so what do you expect to happen?


RE: Graphs - MK_CodingSpace - Dec-03-2020

Not only do you need plot() function, you also need show() function to show the graph