Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Graphs
#1
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()
Reply
#2
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.
Reply
#3
Line 6: you aren't actually passing anything to plot, so what do you expect to happen?
Reply
#4
Not only do you need plot() function, you also need show() function to show the graph
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Computation Graphs aytgeren 1 1,885 May-02-2019, 06:15 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020