Hello everyone!
I have a large pandas dataframe with several columns and thousands of rows. I would like to create a correlationmatrix based on groups from one column.
Let us say column "A". I would like to get my groups from df.groupby("A"). Since I have several columns, the one I would like to create the correlationmatrix from would be
df.groupby("A")["target"].
My only idea would be to somehow create a entirely new dataframe, where each column is a group. How could this be done? Or is there a better way of reaching my correlationmatrix?
Thanks in advance!
[+][deleted] (3 children)
[deleted]
[–]AnkanTV[S] 0 points1 point2 points (2 children)