Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé
Classe « DataFrame »

Méthode pandas.DataFrame.to_feather

Signature de la méthode to_feather

def to_feather(self, path: 'FilePath | WriteBuffer[bytes]', **kwargs) -> 'None' 

Description

help(DataFrame.to_feather)

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 binary ``write()`` 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 :func:`pyarrow.feather.write_feather`.
    This includes the `compression`, `compression_level`, `chunksize`
    and `version` keywords.

Notes
-----
This function writes the dataframe as a `feather file
<https://arrow.apache.org/docs/python/feather.html>`_. Requires a default
index. For saving the DataFrame with your custom index use a method that
supports custom indices e.g. `to_parquet`.

Examples
--------
>>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6]])
>>> df.to_feather("file.feather")  # doctest: +SKIP


Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé