Hey guys If someone could give me an explanation I would be very grateful. This is a code:
#Dict-
hours_year={'2018': 900 , '2019':456}
# Making a df
df=pd.DataFrame({'Year': hours_year.keys(), 'Hours': hours_year.values()})
df
#Output
Year Hours
0 (2018, 2019) (900, 456)
1 (2018, 2019) (900, 456)
My question is- Why tuple? On other pc, same in jupyter it return normal df. Could it be something with version of python that i'am using?? Just guessing.. Thanks for any help