lundi 16 mars 2015

pandas: plot multiple columns of a timeseries with labels.

I am new in python and panda.I am trying to draw graph using python panda. So far i am able to read sqlite database.



import sqlite3
import pandas as pd


conn = sqlite3.connect('demo.db')
df = pd.read_sql("SELECT * FROM ABC", conn)
df.head()


I get this output as result. enter image description here


Here time stamp is for only single year. I want to plot line graph (Year vs Value) for all Type.


Thanks for help


Aucun commentaire:

Enregistrer un commentaire