df = sns.load_dataset('tips')
df.shape(244, 7)
| total_bill | tip | sex | smoker | day | time | size | |
|---|---|---|---|---|---|---|---|
| 0 | 16.99 | 1.01 | Female | No | Sun | Dinner | 2 |
| 1 | 10.34 | 1.66 | Male | No | Sun | Dinner | 3 |
| 2 | 21.01 | 3.50 | Male | No | Sun | Dinner | 3 |
| 3 | 23.68 | 3.31 | Male | No | Sun | Dinner | 2 |
| 4 | 24.59 | 3.61 | Female | No | Sun | Dinner | 4 |
Set seaborn defaults for notebook display and saved figures.
Save the current matplotlib figure as SVG with editable text.
Save the current matplotlib figure as PDF with TrueType fonts.
Show the current figure or save it, then close open figures.
Assign colors to labels while tolerating duplicate category names.
{'A': (0.4, 0.7607843137254902, 0.6470588235294118),
'B': (0.9882352941176471, 0.5529411764705883, 0.3843137254901961),
'C': (0.5529411764705883, 0.6274509803921569, 0.796078431372549)}
Return colors in plotting order for a dict, list, or named palette.
Filter a hue column down to categories that meet a count threshold.
If value is str: compare between groups (x=group, y=value) If value is list/tuple: compare among values within each group (x=group, hue=‘variable’)