Codementor Events

Awesome functions in pandas and seaborn

Published Jan 20, 2021
Awesome functions in pandas and seaborn

Let me show you some cool stuff I learned today so far.
You can run all the following code in google colab.

Plot with seaborn package

Let's download iris dataset

wget https://gist.githubusercontent.com/curran/a08a1080b88344b0c8a7/raw/0e7a9b0a5d22642a06d3d5b9bcbad9890c8ee534/iris.csv -O /content/iris.csv

Let's import pandas and everything

import numpy as np
import pandas as pd
import seaborn as sns

yo = pd.read_csv('/content/iris.csv')
sns.pairplot(yo, hue="species") 

The result will be this amazing plot.
Like all combinations of features.
Of course it's not good idea when you have thousands of parameters so far. But anyway.
download.png

Cool stuff with pandas - describe, values_count

Screenshot 2021-01-20 at 08.45.31.png

Screenshot 2021-01-20 at 08.45.41.png

Discover and read more posts from Alex Polymath
get started
post commentsBe the first to share your opinion
Uliana Sentsova
3 years ago

Nice job, Alex! πŸ‘

Show more replies