pyarrow.feather.read_feather — Apache Arrow v20.0.0 (original) (raw)
pyarrow.feather.read_feather(source, columns=None, use_threads=True, memory_map=False, **kwargs)[source]#
Read a pandas.DataFrame from Feather format. To read as pyarrow.Table use feather.read_table.
Parameters:
sourcestr file path, or file-like object
You can use MemoryMappedFile as source, for explicitly use memory map.
columnssequence, optional
Only read a specific set of columns. If not provided, all columns are read.
Whether to parallelize reading using multiple threads. If false the restriction is used in the conversion to Pandas as well as in the reading from Feather format.
Use memory mapping when opening file on disk, when source is a str.
**kwargs
Additional keyword arguments passed on to pyarrow.Table.to_pandas.
Returns:
The contents of the Feather file as a pandas.DataFrame