ta icon indicating copy to clipboard operation
ta copied to clipboard

FutureWarning

Open jeffkingsley12 opened this issue 2 months ago • 1 comments

FutureWarning: Series.setitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To set a value by position, use ser.iloc[pos] = value self._psar[i] = high2

jeffkingsley12 avatar Apr 20 '24 15:04 jeffkingsley12

high1 = self._high.iloc[i - 1] high2 = self._high.iloc[i - 2] if high2 > self._psar.iloc[i]: #self._psar[i] = high2 self._psar.iloc[i] = high2 elif high1 > self._psar.iloc[i]: self._psar.iloc[i] = high1

jeffkingsley12 avatar Apr 20 '24 15:04 jeffkingsley12