Guest User

Untitled

a guest
Mar 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import pandas
  2. import calendar
  3.  
  4. months = calendar.month_name
  5. mName = []
  6. list_2 = ['136539','141143','107037','78099','37994','37368','56666','81070','62599','82551','96155','121198']
  7. list_3 = ['1077231','1006111','960467','1012844','1206350','891614','913886','1043362','1129260','1337191','1187620','1406599']
  8. for i in months:
  9. mName.append(i)
  10. nNme = mName[1:]
  11. df = pandas.DataFrame(data={"Month": nNme, "Foreign": list_2, "Domestic": list_3},columns=['Month', 'Foreign', 'Domestic'])
  12. df.to_csv("./onam.csv", sep=',',index=False)
Add Comment
Please, Sign In to add comment