Skip to content

Commit 5da5944

Browse files
committed
examples on correct file
1 parent f836e39 commit 5da5944

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pandas/core/frame.py

Lines changed: 5 additions & 0 deletions
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

pandas/io/feather_format.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ def to_feather(
5050
**kwargs :
5151
Additional keywords passed to `pyarrow.feather.write_feather`.
5252
53-
Examples
54-
--------
55-
>>> df = pd.DataFrame({'A' : [1, 2, 3], 'B' : [4, 5, 6]})
56-
>>> df.to_feather("file.feather") # doctest: +SKIP
5753
"""
5854
import_optional_dependency("pyarrow")
5955
from pyarrow import feather

0 commit comments

Comments
 (0)