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

Function read_table

python/pyarrow/feather.py:289–312  ·  view source on GitHub ↗

Read a pyarrow.Table from Feather format Parameters ---------- source : str file path, or file-like object You can use MemoryMappedFile as source, for explicitly use memory map. columns : sequence, optional Only read a specific set of columns. If not provided, a

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

Source from the content-addressed store, hash-verified

287
288
289def read_table(source, columns=None, memory_map=False, use_threads=True):
290 """
291 Read a pyarrow.Table from Feather format
292
293 Parameters
294 ----------
295 source : str file path, or file-like object
296 You can use MemoryMappedFile as source, for explicitly use memory map.
297 columns : sequence, optional
298 Only read a specific set of columns. If not provided, all columns are
299 read.
300 memory_map : boolean, default False
301 Use memory mapping when opening file on disk, when source is a str
302 use_threads : bool, default True
303 Whether to parallelize reading using multiple threads.
304
305 Returns
306 -------
307 table : pyarrow.Table
308 The contents of the Feather file as a pyarrow.Table
309 """
310 return _read_table_internal(source, columns=columns,
311 memory_map=memory_map,
312 use_threads=use_threads)

Calls 1

_read_table_internalFunction · 0.85