如何评估每个变量中每种类型之间的相关性?
df
level job
0 good golfer
1 bad footballer
2 intermediate musician
...
预期输出是一个相关表或类似的东西:
golfer footballer musician ...
good
bad
intermediate
我试过:
df['level']=df['level'].astype('category').cat.codes
df['job']=df['job'].astype('category').cat.codes
df.corr()
qq_遁去的一_1
慕丝7291255
相关分类