kerrickstaley / genanki

A Python 3 library for generating Anki decks
MIT License
2.06k stars 161 forks source link

FutureWarning: Series.__getitem__ treating keys as positions is deprecated #134

Open orgtre opened 5 months ago

orgtre commented 5 months ago
 .../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