FutureWarning
jeffkingsley12 opened this issue · 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
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