> For the complete documentation index, see [llms.txt](https://katt.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://katt.gitbook.io/wiki/python/seaborn-notes.md).

# Seaborn

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.

```python
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](https://github.com/octokatt/wiki/tree/dafb14549b591f1b0049d5daaf79d06e56aefada/python/output_1_0.png)
