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

Function read_feather

python/pyarrow/feather.py:211–240  ·  view source on GitHub ↗

Read a pandas.DataFrame from Feather format. To read as pyarrow.Table use feather.read_table. Parameters ---------- source : str file path, or file-like object You can use MemoryMappedFile as source, for explicitly use memory map. columns : sequence, optional

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

Source from the content-addressed store, hash-verified

209
210
211def read_feather(source, columns=None, use_threads=True,
212 memory_map=False, **kwargs):
213 """
214 Read a pandas.DataFrame from Feather format. To read as pyarrow.Table use
215 feather.read_table.
216
217 Parameters
218 ----------
219 source : str file path, or file-like object
220 You can use MemoryMappedFile as source, for explicitly use memory map.
221 columns : sequence, optional
222 Only read a specific set of columns. If not provided, all columns are
223 read.
224 use_threads : bool, default True
225 Whether to parallelize reading using multiple threads. If false the
226 restriction is used in the conversion to Pandas as well as in the
227 reading from Feather format.
228 memory_map : boolean, default False
229 Use memory mapping when opening file on disk, when source is a str.
230 **kwargs
231 Additional keyword arguments passed on to `pyarrow.Table.to_pandas`.
232
233 Returns
234 -------
235 df : pandas.DataFrame
236 The contents of the Feather file as a pandas.DataFrame
237 """
238 return (_read_table_internal(
239 source, columns=columns, memory_map=memory_map,
240 use_threads=use_threads).to_pandas(use_threads=use_threads, **kwargs))
241
242
243def _read_table_internal(source, columns=None, memory_map=False,

Calls 1

_read_table_internalFunction · 0.85