pyarrow.feather.read_feather

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.

use_threadsbool, default True

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.

memory_mapbool, default False

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:
dfpandas.DataFrame

The contents of the Feather file as a pandas.DataFrame