MCPcopy Create free account
hub / github.com/apache/arrow / read_table

Function read_table

python/pyarrow/feather.py:301–336  ·  view source on GitHub ↗

Read a pyarrow.Table from Feather format .. deprecated:: 24.0.0 Use :func:`pyarrow.ipc.open_file` / :class:`pyarrow.ipc.RecordBatchFileReader` instead. Feather V2 is the Arrow IPC file format. Parameters ---------- source : str file path, or file-like obje

(source, columns=None, memory_map=False, use_threads=True)

Source from the content-addressed store, hash-verified

299
300
301def read_table(source, columns=None, memory_map=False, use_threads=True):
302 """
303 Read a pyarrow.Table from Feather format
304
305 .. deprecated:: 24.0.0
306 Use :func:`pyarrow.ipc.open_file` /
307 :class:`pyarrow.ipc.RecordBatchFileReader` instead.
308 Feather V2 is the Arrow IPC file format.
309
310 Parameters
311 ----------
312 source : str file path, or file-like object
313 You can use MemoryMappedFile as source, for explicitly use memory map.
314 columns : sequence, optional
315 Only read a specific set of columns. If not provided, all columns are
316 read.
317 memory_map : boolean, default False
318 Use memory mapping when opening file on disk, when source is a str
319 use_threads : bool, default True
320 Whether to parallelize reading using multiple threads.
321
322 Returns
323 -------
324 table : pyarrow.Table
325 The contents of the Feather file as a pyarrow.Table
326 """
327 warnings.warn(
328 "pyarrow.feather.read_table is deprecated as of 24.0.0. "
329 "Use pyarrow.ipc.open_file() / RecordBatchFileReader instead. "
330 "Feather V2 is the Arrow IPC file format.",
331 FutureWarning,
332 stacklevel=2
333 )
334 return _read_table_internal(source, columns=columns,
335 memory_map=memory_map,
336 use_threads=use_threads)

Calls 1

_read_table_internalFunction · 0.85