How can i calculate r square in pandas dataframe elegantly?

后端 未结 0 1275
伪装坚强ぢ
伪装坚强ぢ 2021-01-13 16:52

assume i have a dataframe, i want to calculate the r square between two columns.

for example:

In [21]: df = pd.DataFrame(np.random.rand(10, 2))

In [22         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题