Skip to content

Commit

Permalink
DOC: Fixing EX01 - Added examples (#54213)
Browse files Browse the repository at this point in the history
* to_feather example

* examples on correct file
  • Loading branch information
DeaMariaLeon authored Jul 20, 2023
1 parent 743111e commit b75d6ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.test \
pandas.NaT \
pandas.read_feather \
pandas.DataFrame.to_feather \
pandas.read_orc \
pandas.read_sas \
pandas.read_spss \
Expand Down
5 changes: 5 additions & 0 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2757,6 +2757,11 @@ def to_feather(self, path: FilePath | WriteBuffer[bytes], **kwargs) -> None:
<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
"""
from pandas.io.feather_format import to_feather

Expand Down

0 comments on commit b75d6ad

Please sign in to comment.