pandas.read_feather(path, columns=None, use_threads=True, storage_options=None, use_nullable_dtypes=_NoDefault.no_default)[source]#

Load a feather-format object from the file path.

pathstr, path object, or file-like object

String, path object (implementing os.PathLike[str]), or file-like object implementing a binary read() function. The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a host is expected. A local file could be: file://localhost/path/to/table.feather.

columnssequence, default None

If not provided, all columns are read.

use_threadsbool, default True

Whether to parallelize reading using multiple threads.

storage_optionsdict, optional

Extra options that make sense for a particular storage connection, e.g. host, port, username, password, etc. For HTTP(S) URLs the key-value pairs are forwarded to urllib.request.Request as header options. For other URLs (e.g. starting with “s3://”, and “gcs://”) the key-value pairs are forwarded to Please see fsspec and urllib for more details, and for more examples on storage options refer here.

New in version 1.2.0.

use_nullable_dtypesbool = False

Whether or not to use nullable dtypes as default when reading data. If set to True, nullable dtypes are used for all dtypes that have a nullable implementation, even if no nulls are present.

The nullable dtype implementation can be configured by calling pd.set_option("mode.dtype_backend", "pandas") to use numpy-backed nullable dtypes or pd.set_option("mode.dtype_backend", "pyarrow") to use pyarrow-backed nullable dtypes (using pd.ArrowDtype).

New in version 2.0.

type of object stored in file