How can I build a simple histogram in Siborn without any statistics? A dataset is just names and values.
import pandas df = pandas.DataFrame({"name": ["Bob Johnson", "Mary Cramer", "Joe Ellis"], "vals": [1,2,3]})
I would like to build this as a histogram with xlabels, pulled out of the name column and the y axis values ββfrom vals , and the labels on the x axis rotated 45 degrees. How can I do that? Using sns.barplot as:
sns.barplot(x="name", y="vals", data=df)
will calculate statistics that are not relevant here.
python matplotlib bar-chart seaborn
mvd Sep 25 '16 at 16:47 2016-09-25 16:47
source share