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

Function read_table

python/pyarrow/feather.py:284–307  ·  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

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

Calls 1

_read_table_internalFunction · 0.85