Q. Write code snippet to create histogram only for column "Agg" from DataFrame mdf.


Answer :-


import pandas as pd
import matplotlib.pyplot as pl
mdf=pd.DataFrame({'agg':[18,7,6,9,44,41],'score':[10,20,30,10,5,8]})
mdf.hist(column="agg")
pl.show()


1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post