Skip to content

Commit b75d6ad

Browse files
authored
DOC: Fixing EX01 - Added examples (#54213)
* to_feather example * examples on correct file
1 parent 743111e commit b75d6ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
7676
pandas.test \
7777
pandas.NaT \
7878
pandas.read_feather \
79-
pandas.DataFrame.to_feather \
8079
pandas.read_orc \
8180
pandas.read_sas \
8281
pandas.read_spss \

pandas/core/frame.py

+5
Original file line numberDiff line numberDiff line change
@@ -2757,6 +2757,11 @@ def to_feather(self, path: FilePath | WriteBuffer[bytes], **kwargs) -> None:
27572757
<https://arrow.apache.org/docs/python/feather.html>`_. Requires a default
27582758
index. For saving the DataFrame with your custom index use a method that
27592759
supports custom indices e.g. `to_parquet`.
2760+
2761+
Examples
2762+
--------
2763+
>>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6]])
2764+
>>> df.to_feather("file.feather") # doctest: +SKIP
27602765
"""
27612766
from pandas.io.feather_format import to_feather
27622767

0 commit comments

Comments
 (0)