Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.DataFrame.to_feather#

DataFrame.to_feather(path,**kwargs)[source]#

Write a DataFrame to the binary Feather format.

Parameters:
pathstr, path object, file-like object

String, path object (implementingos.PathLike[str]), or file-likeobject 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 topyarrow.feather.write_feather().This includes thecompression,compression_level,chunksizeandversion keywords.

Notes

This function writes the dataframe as afeather file. Requires a defaultindex. For saving the DataFrame with your custom index use a method thatsupports custom indices e.g.to_parquet.

Examples

>>>df=pd.DataFrame([[1,2,3],[4,5,6]])>>>df.to_feather("file.feather")

[8]ページ先頭

©2009-2025 Movatter.jp