genanki icon indicating copy to clipboard operation
genanki copied to clipboard

FutureWarning: Series.__getitem__ treating keys as positions is deprecated

Open orgtre opened this issue 9 months ago • 0 comments

 .../genanki/note.py:67: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
  return self._sort_field or self.fields[self.model.sort_field_index]

.../genanki/note.py:113: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
  if op(self.fields[ord_] for ord_ in required_field_ords):

python 3.12 genanki 0.13.1

orgtre avatar May 21 '24 11:05 orgtre