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
Post a Comment