In Python learn how to use the barplot. This standard data analysis tool is quite flexible and can plot value counts of category classes or the mean of a numeric column.
Use the x and y arguments to change the orientation of your barplot.
With Seaborn's barplot you can inspect both a count of the values in a catgeory and the means or medians of numeric features.
Follow Data Science Teacher Brandyn
dataGroups:
Use pandas value_counts with a barplot. Set one axis to either with the index of the value_counts Pandas Series.
After taking the mean of a Pandas DataFrame with get the columns names as the index in a Pandas Series that can be easily put into a Seaborn barplot.
Access the matplotlib pyplot patches attribute to select and change the colors of each object in your plot.
In the Seaborn barplot you can easily change the orientation of your barplot by using the x and y arguments and switching them. In Seaborn's plotting functions most plots have the flexibility to change the axes between numeric and categorical variables.
Comments