kopia lustrzana https://github.com/animator/learn-python
Update seaborn-basics.md
rodzic
4446a85d1f
commit
6aecf49fd0
|
@ -1 +1,19 @@
|
|||
Seaborn helps you explore and understand your data. Its plotting functions operate on dataframes and arrays containing whole datasets and internally perform the necessary semantic mapping and statistical aggregation to produce informative plots. Its dataset-oriented, declarative API lets you focus on what the different elements of your plots mean, rather than on the details of how to draw them.
|
||||
|
||||
Here’s an example of what seaborn can do:
|
||||
```Python
|
||||
# Import seaborn
|
||||
import seaborn as sns
|
||||
|
||||
# Apply the default theme
|
||||
sns.set_theme()
|
||||
|
||||
# Load an example dataset
|
||||
tips = sns.load_dataset("tips")
|
||||
|
||||
# Create a visualization
|
||||
sns.relplot(
|
||||
data=tips,
|
||||
x="total_bill", y="tip", col="time",
|
||||
hue="smoker", style="smoker", size="size",
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue