😺
wiki
  • Welcome, Internet Strangers!
  • sql
    • etl
      • Basics to Remember
      • Context to Remember
      • Naming Practices
      • ETL Steps
    • performance
      • Please No
      • Initial Explorations
      • Stored Procedures
    • select-tricks
      • Over Partition
      • Stored Procedures*
      • Creating Parameters
  • python
    • Working with Files
    • Classes in Python
    • Dictionaries
    • Working with Strings
    • Using Lambda
    • Seaborn
    • machine-learning
      • Learning Pandas
      • MatPlotLib! The Dreaded Line Graph...
      • matlab-qualgraphs-notes
      • Linear Regression Example
      • kNN Analysis in ScikitLearn
    • Neat Snippets
  • bash
    • helpful_cmd
  • math
    • Basic Definitions
    • Linear Regressions
    • Meaningful Sampling
Powered by GitBook
On this page

Was this helpful?

  1. python

Seaborn

PreviousUsing LambdaNextmachine-learning

Last updated 3 years ago

Was this helpful?

Seaborn is a package that works with dataframes from Pandas that rapidly prototypes graphs. Once data arranging is complete, this makes life so, so easy.

In particular, Seaborn has a much easier time of plotting multiple-group bar graphs than using straight MatPlotLib.

import pandas as pd
from matplotlib import pyplot as plt
import seaborn as sns

df = pd.read_csv("survey_sample.csv")

sns.barplot(data=df, x="Age Range", y="Patient ID", hue="Gender")

plt.show()
png