我在python中运行Bollinger乐队时遇到问题。
# Create Bollinger Bands
dataset['20sd'] = pd.stats.moments.rolling_std(dataset['Close'],20)
dataset['upper_band'] = dataset['ma21'] + (dataset['20sd']*2)
dataset['lower_band'] = dataset['ma21'] - (dataset['20sd']*2)
错误
AttributeError: module 'pandas' has no attribute 'stats'