File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 1717
1818import numpy as np
1919
20- from pandas .util ._decorators import Appender
2120from pandas .util ._exceptions import find_stack_level
2221
2322import pandas as pd
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
144129def _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
You can’t perform that action at this time.
0 commit comments