Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas
- import calendar
- months = calendar.month_name
- mName = []
- list_2 = ['136539','141143','107037','78099','37994','37368','56666','81070','62599','82551','96155','121198']
- list_3 = ['1077231','1006111','960467','1012844','1206350','891614','913886','1043362','1129260','1337191','1187620','1406599']
- for i in months:
- mName.append(i)
- nNme = mName[1:]
- df = pandas.DataFrame(data={"Month": nNme, "Foreign": list_2, "Domestic": list_3},columns=['Month', 'Foreign', 'Domestic'])
- df.to_csv("./onam.csv", sep=',',index=False)
Add Comment
Please, Sign In to add comment