Skip to content

Commit c8088c0

Browse files
committed
AP-21518: Always pass np.array to pd.Series.take to circumvent deprecation warning
AP-21518 (Add support for Python 3.12 and 3.13)
1 parent e1f34dc commit c8088c0

File tree

1 file changed

+4
-0
lines changed
  • org.knime.python3.arrow/src/main/python/knime/_arrow

1 file changed

+4
-0
lines changed

org.knime.python3.arrow/src/main/python/knime/_arrow/_pandas.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,10 @@ def take(
845845
logical_type=self._logical_type,
846846
converter=self._converter,
847847
)
848+
849+
if isinstance(indices, list):
850+
indices = np.array(indices)
851+
848852
storage = katy._to_storage_array(
849853
self._data
850854
) # decodes the data puts it in storage array

0 commit comments

Comments
 (0)