Wednesday, April 1, 2020

seaborn library

Seaborn is a library for making statistical graphics in Python. It is built on top of matplotlib and closely integrated with pandas data structures.
install it before start
pip install seaborn

Example1:


import seaborn as sns
sns.set()
tips = sns.load_dataset("tips")
sns.relplot(x="total_bill", y="tip", col="time",
            hue="smoker", style="smoker", size="size",
            data=tips);

output:

No comments:

Post a Comment

python class topic video