Ask Your Question

What is the method to eliminate the diagonal plot in a pairplot?

asked 2023-06-30 11:43:54 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-06-30 12:06:02 +0000

devzero gravatar image

The method to eliminate the diagonal plot in a pairplot is to use the "diag_kind" parameter and set it to "none" while creating the pairplot. For example:

import seaborn as sns
iris = sns.load_dataset("iris")
sns.pairplot(iris, diag_kind="none")

This will create a pairplot without the diagonal plot.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2023-06-30 11:43:54 +0000

Seen: 24 times

Last updated: Jun 30 '23