|
58 | 58 | from requests import HTTPError |
59 | 59 | from tqdm.auto import tqdm |
60 | 60 |
|
61 | | -from datasets.formatting.formatting import _is_range_contiguous |
62 | | - |
63 | 61 | from . import config |
64 | 62 | from .arrow_reader import ArrowReader |
65 | 63 | from .arrow_writer import ArrowWriter, OptimizedTypedSequence |
|
78 | 76 | update_fingerprint, |
79 | 77 | ) |
80 | 78 | from .formatting import format_table, get_format_type_from_alias, get_formatter, query_table |
| 79 | +from .formatting.formatting import _is_range_contiguous |
81 | 80 | from .info import DatasetInfo, DatasetInfosDict |
82 | 81 | from .search import IndexableMixin |
83 | 82 | from .splits import NamedSplit, Split, SplitInfo |
@@ -2998,7 +2997,7 @@ def select( |
2998 | 2997 |
|
2999 | 2998 | Args: |
3000 | 2999 | 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, |
3002 | 3001 | which is much more efficient. |
3003 | 3002 | keep_in_memory (:obj:`bool`, default `False`): Keep the indices mapping in memory instead of writing it to a cache file. |
3004 | 3003 | 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