I wanted to try using pygal with it's ability to create SVG data as i'm going to create a printed PDF page from the merged HTML with the SVG graph.
What i want to do is the equivalent of pygal.plot(dataframe) but i'm not seeing that in the docs.
I know that i can do:
df = pd.Series(np.random.randn(5), index = ['a', 'b', 'c', 'd', 'e'])
chart = pygal.Line()
for index, row in df.iteritems():
chart.add(index,row)
But that seems wrong from a python point of view. Should i be doing it differently?
Plus how would i do this if the dataframe had multiple columns?