The plothelper.py file should be in the same folder
import numpy as np
import pandas as pd
from plothelper import PlotHelper as PH
%matplotlib inline
# load dataset
dfHouses = pd.read_csv('kc_house_data.csv')
This is the same function that seaborn.pairplot() but it has two new parameters:
- max_per_row: maximum charts in the same row
- reg_line_color: if the type of the chart is kind='reg', this property paints the regression line in the color choosen
PH().pairplot(data=dfHouses,
x_vars=dfHouses.columns.tolist(),
y_vars=['price'],
max_per_row=5,
kind='reg',
reg_line_color='red')