First, make two lists from your database. Something like:
cursor = con.cursor()
cursor.execute("SELECT * FROM traffic")
#Retrieves data from SQL
rows = cursor.fetchall()
Month = list()
Traffic = li
#look ##retrieves #something #rpy2 #this
https://stackoverflow.com/questions/1...
https://stackoverflow.com/questions/1...