Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to make a pairs plot with pandas

import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline

from sklearn import datasets

iris_dataset = datasets.load_iris()
X = iris_dataset.data
Y = iris_dataset.target

iris_dataframe = pd.DataFrame(X, columns=iris_dataset.feature_names)

# Create a scatter matrix from the dataframe, color by y_train
grr = pd.plotting.scatter_matrix(iris_dataframe, c=Y, figsize=(15, 15), marker='o',
                                 hist_kwds={'bins': 20}, s=60, alpha=.8)
Comment

PREVIOUS NEXT
Code Example
Python :: pandas timedelta to seconds 
Python :: install decouple python 
Python :: dynamo scripts template 
Python :: ellipsis in python as index 
Python :: ignore module import log in python 
Python :: override the text in buttons django admin 
Python :: get most repeated instance in a queryset django 
Python :: pandas et numeric columns 
Python :: creating a new enviroment in conda 
Python :: check value vowel user input python 
Python :: save plot in python 
Python :: pyplot legend outside figure 
Python :: drop duplicates pandas first column 
Python :: cartesian product of a list python 
Python :: run py file in another py file 
Python :: pythons os module choose random file 
Python :: price for bazaar item hypixel python 
Python :: how to make basic inventory setup in python 
Python :: jupyter notebook for loop progress bar 
Python :: matlab find in python 
Python :: python die 
Python :: flatten an irregular list of lists 
Python :: django templateview 
Python :: get all indices of a value in list python 
Python :: restart computer py 
Python :: python tkinter disable dropdown 
Python :: pickle dump 
Python :: np install python 
Python :: equivalent of setInterval python 
Python :: pandas read csv read all rows except one 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =