Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

seaborn pairplot python

# importing packages
import seaborn
import matplotlib.pyplot as plt
  
############# Main Section ############
# loading dataset using seaborn
df = seaborn.load_dataset('tips')
# pairplot with hue sex
seaborn.pairplot(df, hue ='sex')
# to show
plt.show()
  
# This code is contributed by Deepanshu Rustagi.
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #seaborn #pairplot #python
ADD COMMENT
Topic
Name
3+2 =