+
    xȇi0                       R t ^ RIHt ^ RIHtHt ^ RIHt ^ RIH	t	H
t
Ht ^ RIHt ^ RIHt ]	'       d   ^ RIHt ^ RIHt ^ R	IHtHtHt ^ R
IHt ]! R4       ! R R]R,          ]4      4       t]RRRRRRRRRRRR/R R ll4       t]RRRRRRRRRRRR/R R ll4       t]! R4      RRRRRRRRRRRR/R R ll4       tR# ) z#
Read SAS sas7bdat or xport files.
)annotations)ABCabstractmethod)Iterator)TYPE_CHECKINGSelfoverload)
set_module)stringify_path)Hashable)TracebackType)CompressionOptionsFilePath
ReadBuffer)	DataFramezpandas.api.typingc                  b    ] tR t^#tRt]RR R ll4       t]R R l4       tR R ltR	 R
 lt	Rt
R# )	SASReaderz4
Abstract class for XportReader and SAS7BDATReader.
Nc                    V ^8  d   QhRRRR/# )   nrows
int | Nonereturnr    )formats   "g/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/io/sas/sasreader.py__annotate__SASReader.__annotate__*   s    >>*>	>    c                	    R # Nr   )selfr   s   &&r   readSASReader.read)   s    ;>r   c                   V ^8  d   QhRR/# )r   r   Noner   )r   s   "r   r   r   -   s      t r   c                	    R # r   r   r    s   &r   closeSASReader.close,   s     r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   /   s      4 r   c                	    V # r   r   r&   s   &r   	__enter__SASReader.__enter__/   s    r   c               (    V ^8  d   QhRRRRRRRR/# )	r   exc_typeztype[BaseException] | None	exc_valuezBaseException | None	tracebackzTracebackType | Noner   r$   r   )r   s   "r   r   r   2   s2      , ( (	
 
r   c                	&    V P                  4        R # r   )r'   )r    r.   r/   r0   s   &&&&r   __exit__SASReader.__exit__2   s     	

r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r!   r'   r+   r2   __static_attributes__r   r   r   r   r   #   s4     > >    r   r   r   r   .indexencoding	chunksizeiteratorcompressionc               8    V ^8  d   QhRRRRRRRRRR	R
RRRRR/# )r   filepath_or_bufferFilePath | ReadBuffer[bytes]r   
str | Noner:   Hashable | Noner;   r<   intr=   boolr>   r   r   r   r   )r   s   "r   r   r   <   sZ     	 	4	 	 		
 	 	 	 $	 	r   c                   R # r   r   r@   r   r:   r;   r<   r=   r>   s   &$$$$$$r   read_sasrH   ;   s     r   c               8    V ^8  d   QhRRRRRRRRRR	R
RRRRR/# )r   r@   rA   r   rB   r:   rC   r;   r<   r$   r=   rE   r>   r   r   DataFrame | SASReaderr   )r   s   "r   r   r   I   sZ     	  	 4	  	  		 
 	  	  	  $	  	 r   c                   R # r   r   rG   s   &$$$$$$r   rH   rH   H   s      r   pandasNFinferc               8    V ^8  d   QhRRRRRRRRRR	R
RRRRR/# )r   r@   rA   r   rB   r:   rC   r;   r<   r   r=   rE   r>   r   r   rJ   r   )r   s   "r   r   r   V   sd     o o4o o 	o
 o o o $o or   c                  Vfb   Rp\        V 4      p \        V \        4      '       g   \        V4      hV P	                  4       pRV9   d   RpMRV9   d   RpM\        RV: 24      hVP	                  4       R8X  d   ^ RIHp	 V	! V VVVVR	7      p
M4VP	                  4       R8X  d   ^ R
IHp V! V VVVVR	7      p
M\        R4      hV'       g	   V'       d   V
# V
;_uu_ 4        V
P                  4       uuRRR4       #   + '       g   i     R# ; i)a	  
Read SAS files stored as either XPORT or SAS7BDAT format files.

Parameters
----------
filepath_or_buffer : str, path object, or file-like object
    String, path object (implementing ``os.PathLike[str]``), or file-like
    object implementing a binary ``read()`` function. The string could be
    a URL. Valid URL schemes include http, ftp, s3, and file. For file
    URLs, a host is expected. A local file could be:
    ``file://localhost/path/to/table.sas7bdat``.
format : str {{'xport', 'sas7bdat'}} or None
    If None, file format is inferred from file extension. If 'xport' or
    'sas7bdat', uses the corresponding format.
index : identifier of index column, defaults to None
    Identifier of column that should be used as index of the DataFrame.
encoding : str, default is None
    Encoding for text data.  If None, text data are stored as raw bytes.
chunksize : int
    Read file `chunksize` lines at a time, returns iterator.
iterator : bool, defaults to False
    If True, returns an iterator for reading the file incrementally.
compression : str or dict, default 'infer'
    For on-the-fly decompression of on-disk data. If 'infer' and
    'filepath_or_buffer' is path-like, then detect compression from the
    following extensions: '.gz', '.bz2', '.zip', '.xz', '.zst', '.tar',
    '.tar.gz', '.tar.xz' or '.tar.bz2' (otherwise no compression).
    Set to ``None`` for no decompression.
    Can also be a dict with key ``'method'`` set to one of {``'zip'``,
    ``'gzip'``, ``'bz2'``, ``'zstd'``, ``'xz'``, ``'tar'``} and other
    key-value pairs are forwarded to ``zipfile.ZipFile``,
    ``gzip.GzipFile``, ``bz2.BZ2File``, ``zstandard.ZstdCompressor``,
    ``lzma.LZMAFile`` or ``tarfile.TarFile``, respectively.
    As an example, the following could be passed for faster compression
    and to create a reproducible gzip archive:
    ``compression={'method': 'gzip', 'compresslevel': 1, 'mtime': 1}``.

Returns
-------
DataFrame, SAS7BDATReader, or XportReader
    DataFrame if iterator=False and chunksize=None, else SAS7BDATReader
    or XportReader, file format is inferred from file extension.

See Also
--------
read_csv : Read a comma-separated values (csv) file into a DataFrame.
read_excel : Read an Excel file into a pandas DataFrame.
read_spss : Read an SPSS file into a pandas DataFrame.
read_orc : Load an ORC object into a pandas DataFrame.
read_feather : Load a feather-format object into a pandas DataFrame.

Examples
--------
>>> df = pd.read_sas("sas_data.sas7bdat")  # doctest: +SKIP
NzVIf this is a buffer object rather than a string name, you must specify a format stringz.xptxportz	.sas7bdatsas7bdatz2unable to infer format of SAS file from filename: )XportReader)r:   r;   r<   r>   )SAS7BDATReaderzunknown SAS format)
r
   
isinstancestr
ValueErrorlowerpandas.io.sas.sas_xportrR   pandas.io.sas.sas7bdatrS   r!   )r@   r   r:   r;   r<   r=   r>   buffer_error_msgfnamerR   readerrS   s   &$$$$$$     r   rH   rH   U   s   D ~C 	 ,,>?,c22-.."((*U?FE!FDUIN 
 ||~ 7#
 
:	%9#
 -..9	{{} 
s   C::D	)r8   
__future__r   abcr   r   collections.abcr   typingr   r   r   pandas.util._decoratorsr	   pandas.io.commonr
   r   typesr   pandas._typingr   r   r   rL   r   r   rH   r   r   r   <module>re      sh   # %  / +(#  !  %s  !. 
	 	 !		
 	 	 	 '*	 
	 
	  	  !		 
 	  	  	  '*	  
	  Ho o "	o
  o !o o '.o or   