用于查找两个数据帧之间相关性的 R2 值
是否可以找到两个不同数据集的 Rsqaured 值以找到相关性?
例如,我有两个数据帧,如下所示
DataFrame 1
Date humidity Average windspeed sunshine avg cloud
0 2016-01-01 93.714 2.855 1.622 5.925
1 2016-01-02 89.423 5.762 0.237 6.879
2 2016-01-03 87.281 6.138 0.978 6.308
DataFrame 2
Date Wind ene wind offshore Photovoltaic
0 2016-01-01 93.714 2.855 1.622
1 2016-01-02 89.423 5.762 0.237
2 2016-01-03 87.281 6.138 0.978
如何找到这两个数据帧之间的相关性?
Is it possible to find a Rsqaured value of two different dataset in order to find correlation?
For example, I have two dataframes as below
DataFrame 1
Date humidity Average windspeed sunshine avg cloud
0 2016-01-01 93.714 2.855 1.622 5.925
1 2016-01-02 89.423 5.762 0.237 6.879
2 2016-01-03 87.281 6.138 0.978 6.308
DataFrame 2
Date Wind ene wind offshore Photovoltaic
0 2016-01-01 93.714 2.855 1.622
1 2016-01-02 89.423 5.762 0.237
2 2016-01-03 87.281 6.138 0.978
How would I find a correlation between these two dataframes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能解释一下您的目标吗?根据我的理解,寻找这两个数据帧之间的相关性没有多大意义。我建议您找到湿度和风速之间的相关性,或者如果第一个数据帧中的风速为,则调查海上和陆上风速的情况来自陆上。
Could you please explain your goal? In my understanding, it makes less sense to find correlation between these two data frames.I would suggest you to find correlation between humidty and wind speed or investigate how the offshore and onshore wind speed look like if the wind speed in your first data frame is from onshore.