Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
mariosasko committed Apr 16, 2024
1 parent 0ec973d commit 5082217
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/datasets/formatting/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ def _query_table_with_indices_mapping(
if isinstance(key, Iterable):
return _query_table(table, [indices.fast_slice(i, 1).column(0)[0].as_py() for i in key])

try:
return operator.index(key)
except TypeError:
pass

_raise_bad_key_type(key)


Expand All @@ -105,11 +100,6 @@ def _query_table(table: Table, key: Union[int, slice, range, str, Iterable]) ->
# don't use pyarrow.Table.take even for pyarrow >=1.0 (see https://issues.apache.org/jira/browse/ARROW-9773)
return table.fast_gather(key % table.num_rows)

try:
return operator.index(key)
except TypeError:
pass

_raise_bad_key_type(key)


Expand Down

0 comments on commit 5082217

Please sign in to comment.