I have a dataframe with 2000 columns and 730 rows.
Each column is a time series for a variable.
Th distribution of some of the columns is unimmodal and some are bi-modal.
I would like to do a correlation analysis on the columns but before that i need to split the columns into two dataframes, one that contains all columns that have a uni-modal distribution and the other than contains all columns that have a bi-modal distribution.
Is anyone able to help me with this? I suspect i need to loop through the columns of the dataframe and check for normality or number of modes and do the partitioning this way - just i don't know where to start.
Thanks!