See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy self.klines["D"].iloc[-1] = self.kd.d.iloc[-1] SettingWithCopyWarning:...

查看问题
0 投票