原文:How to calculate the Relative Strength Index (RSI) through record iterations in pandas dataframe
我创造了一个熊猫数据框架如下:进口熊猫作为pd import numpy as np ds = {趋势:1,1,1,1,1,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,价格:[23,43,56,21,43,55,54,32,9,12,11,12,12,12,23,23,3,2,1]...