Skip to content

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

@orgtre

Description

@orgtre
 .../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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions