Compare commits
No commits in common. "79dd2b3ec888137a44d39cde9a36d57d97e0985e" and "ae53d3ec6f7fcd3529d2684b1a45b391ebabc120" have entirely different histories.
79dd2b3ec8
...
ae53d3ec6f
@ -1,31 +0,0 @@
|
|||||||
# A9 - Data visualization-2
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
1. Import library
|
|
||||||
|
|
||||||
```python3
|
|
||||||
import seaborn as sns
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Set dataframe
|
|
||||||
|
|
||||||
```python3
|
|
||||||
df = sns.load_dataset("titanic")
|
|
||||||
df
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Boxplot
|
|
||||||
|
|
||||||
```python3
|
|
||||||
sns.boxplot(x="sex", y="age", data=df, hue="survived")
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Catplot
|
|
||||||
|
|
||||||
```python3
|
|
||||||
sns.catplot(x="sex", hue="survived", data=df, kind="count")
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user