On this page
pandas.DataFrame.to_feather
- DataFrame.to_feather(path, **kwargs)[source]
-
Write a DataFrame to the binary Feather format.
- Parameters
-
- path:str, path object, file-like object
-
String, path object (implementing
os.PathLike[str]
), or file-like object implementing a binarywrite()
function. If a string or a path, it will be used as Root Directory path when writing a partitioned dataset. - **kwargs
-
Additional keywords passed to
pyarrow.feather.write_feather()
. Starting with pyarrow 0.17, this includes the compression, compression_level, chunksize and version keywords.New in version 1.1.0.
Notes
This function writes the dataframe as a feather file. Requires a default index. For saving the DataFrame with your custom index use a method that supports custom indices e.g. to_parquet.
© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.5.0/reference/api/pandas.DataFrame.to_feather.html