Awesome functions in pandas and seaborn

[ad_1]


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

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

Screenshot 2021-01-20 at 08.45.31.png

Screenshot 2021-01-20 at 08.45.41.png

Read More …

[ad_2]


Write a comment