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.

Let’s download iris dataset

wget -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.

Screenshot 2021-01-20 at 08.45.31.png

Screenshot 2021-01-20 at 08.45.41.png

Read More …


Write a comment