New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SettingWithCopyWarning] for getting ATR #38
Comments
Hello, your problem has been solved. |
Hi @erikgqp8645 , could you share the solution? |
你好! 原始代码是这样,请原谅我不会插入代码 设置做大显示列和行,中间不显示省略号pd.set_option('display.max_rows', 100) 读取兔子上的数据begin_time = '2017-02-01' 初始化统计类stockStat = stockstats.StockDataFrame.retype(stock) 读取df的数据存在问题df = pd.read_csv("E:\Text_Guo\Data\btc\BITFINEX_BTCUSD_20180101_1T.csv", skiprows=1) stock["date"] = stock.index.values # 增加日期列。df = stockstats.sort_index(0) # 将数据按照日期排序下。初始化统计类stockStat_df = stockstats.StockDataFrame.retype(df) 第一个结果是这样 第二个结果是这样 See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy |
第一个数据是没有问题的,第二个数据存在问题。 |
我也不清楚是哪个操作触发了这个警告。你可以忽略这个警告,目前看起来不会对数据有影响。 |
好的,我试着忽略他。 |
Fixed in 0.3.2. |
my code:
I got the following warning:
I tried 'macdh' and 'sma', they don't have this issue.
The text was updated successfully, but these errors were encountered: