Skip to content

Commit c7db90f

Browse files
authored
DOC: Replace @appender with inline docstring in io\sas\sas_xport.py (#63021)
1 parent 00a7c41 commit c7db90f

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

pandas/io/sas/sas_xport.py

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import numpy as np
1919

20-
from pandas.util._decorators import Appender
2120
from pandas.util._exceptions import find_stack_level
2221

2322
import pandas as pd
@@ -126,20 +125,6 @@
126125
Contains information about the variables in the file
127126
"""
128127

129-
_read_method_doc = """\
130-
Read observations from SAS Xport file, returning as data frame.
131-
132-
Parameters
133-
----------
134-
nrows : int
135-
Number of rows to read from data file; if None, read whole
136-
file.
137-
138-
Returns
139-
-------
140-
A DataFrame.
141-
"""
142-
143128

144129
def _parse_date(datestr: str) -> DatetimeNaTType:
145130
"""Given a date in xport format, return Python date."""
@@ -464,8 +449,19 @@ def _missing_double(self, vec):
464449
miss &= miss1
465450
return miss
466451

467-
@Appender(_read_method_doc)
468452
def read(self, nrows: int | None = None) -> pd.DataFrame:
453+
"""Read observations from SAS Xport file, returning as data frame.
454+
455+
Parameters
456+
----------
457+
nrows : int
458+
Number of rows to read from data file; if None, read whole
459+
file.
460+
461+
Returns
462+
-------
463+
A DataFrame.
464+
"""
469465
if nrows is None:
470466
nrows = self.nobs
471467

0 commit comments

Comments
 (0)