迭代数据框中的数据的一部分
数据: 在excel中可视化的数据
- 我的数据集如上所述。
- 我可以使用python创建数据框架:首先要进行红色,进行一些计算,保存结果。创建蓝色并进行计算,保存一些数据以及绿色等等?
- 帮助!如何!?
- I have dataset as seen above.
- Can i use python to create dataframes: first red, do some calculations, save results. Create the blue and do calculations, save some data and green and so on?
- HELP! How!?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以从在这里使用
pandas
/code>并在dataframe
df
中加载来自Excel文件的数据,然后做类似的事情You can start from here to use
pandas
and load up the data from the excel file in a dataframedf
, then do something like您需要对需要执行的计算更具体。
但是您要寻找的是一个滚动窗口
You need to be more specific about the calculation you need to perform.
But what you are looking for is a rolling window