Skip to content

Commit 876439f

Browse files
committed
minor
1 parent 0695242 commit 876439f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/datasets/arrow_dataset.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
from requests import HTTPError
5959
from tqdm.auto import tqdm
6060

61-
from datasets.formatting.formatting import _is_range_contiguous
62-
6361
from . import config
6462
from .arrow_reader import ArrowReader
6563
from .arrow_writer import ArrowWriter, OptimizedTypedSequence
@@ -78,6 +76,7 @@
7876
update_fingerprint,
7977
)
8078
from .formatting import format_table, get_format_type_from_alias, get_formatter, query_table
79+
from .formatting.formatting import _is_range_contiguous
8180
from .info import DatasetInfo, DatasetInfosDict
8281
from .search import IndexableMixin
8382
from .splits import NamedSplit, Split, SplitInfo
@@ -2998,7 +2997,7 @@ def select(
29982997
29992998
Args:
30002999
indices (sequence, iterable, range, ndarray or Series): List or 1D-array of integer indices for indexing.
3001-
If the indices is a contiguous range, then no new indices mapping is created and the Arrow table is simply sliced,
3000+
If the indices correspond to a contiguous range, then no new indices mapping is created and the Arrow table is simply sliced,
30023001
which is much more efficient.
30033002
keep_in_memory (:obj:`bool`, default `False`): Keep the indices mapping in memory instead of writing it to a cache file.
30043003
indices_cache_file_name (:obj:`str`, optional, default `None`): Provide the name of a path for the cache file. It is used to store the

0 commit comments

Comments
 (0)