TypeError: pairplot() got an unexpected keyword argument 'color

Viewed 2108
sns.pairplot(df,hue='target')

I can plot the pairplot using the pairplot function. but i want to plot it using the facegrid function.i tried

sns.FacetGrid(df,hue='target').map(sns.pairplot,hue='target').add_legend()

but this line gives me error that pairplot() got an unexpected keyword argument 'color'. can we plot the pairplot using facegrid function?.

0 Answers
Related