pandas - Show histogram in Python from dataframe -


i read dataframe csv file. 1 column contains year (sample: 1900) or '' of peoples' birthday. how can show histogarm of column in python 3?

d = {'gender' : series(['m', 'f', 'f', 'f', 'm']),'year' : series([1900, 1910, 1920, 1920, 1920])} df = dataframe(d)  grouped = df.groupby('gender').year grouped.plot(kind='hist',legend=true) 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -