Answers for "plot histrogram with pandas df column using matplotlib"

3

python plot frequency of column values

# Plot frequency
my_df['my_var'].value_counts().plot.bar()

# Add column freq to the DF
df['freq']=df.groupby(by='Name')['Name'].transform('count')
Posted by: Guest on October-20-2020
0

show distribution pandas coloumns

df['age'] == ['14','16','23','54']
df['age'].hist()
Posted by: Guest on December-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language