简体   繁体   中英

Alternative to seaborn pairplot to visualize dataframe?

I have a fairly large pandas data frame((4000, 103) and for smaller dataframes I love using pairplot to visually see patterns in my data. But for my larger dataset the same command runs for hour+ with no output.

Is there an alternative tool to get the same outcome or a way to speed up the command? I tried to use the sample option on pandas to reduce the dataset but it still takes over a hour with no outcome.

dfSample = myData.sample(100) # make dataset smaller
sns.pairplot(dfSample, diag_kind="hist") 

You should sample from colums, so replace your first line by

dfSample=myData.sample(10, axis=1).

And live happy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM