
    Mh                    R   S SK Jr  S SKJrJrJrJr  S SKrS SKJ	r	  S SK
Jr  S SKrS SKJr  S SKJrJrJrJrJrJrJrJrJrJr  S SKrS SKrS SKJr  S S	KJr  S S
K J!r!  S SK"J#r#J$r$  S SK%J&r&  S SK'J(r(J)r)  S SK*J+r+  S SK,J-r-  S SK.J/r/J0r0J1r1J2r2  S SK3J4r4  S SK5J6r6  S SK7J8r8  S SK9J:r:J;r;J<r<J=r=  S SK>J?r?J@r@JArAJBrBJCrC  S SKDJErE  S SKFJGrG  \(       a  S SKHJIrI  S SKJJKrKJLrLJMrMJNrNJOrOJPrPJQrQJRrRJSrSJTrT  S\" SR                  \V" \!5      5      SSS9-   S-   rW\ S5S S S S S S S S S S S S S S S S S S S S S S S S S!.                                                 S6S# jjj5       rX\S S S S S S S S S S S S S S S S S S S S S S S S S!.                                                 S7S$ jj5       rX\)" \6S"   S%9\(" \W5       S8S SSSSSSSSSSSS&S&S'S'\R                  SSS(SS S\R                  SS).                                                   S9S* jjj5       5       rX\" S+5      rZ " S, S-\\Z   5      r[\)" \6S"   S%9 " S. S/\\Z   5      5       r\S0r]S1r^\_" \`" \a\]\^4-   5      5      rb\)" \6S"   S%9 S:     S;S2 jj5       rc " S3 S45      rdg)<    )annotations)HashableIterableMappingSequenceN)partial)BytesIO)fill)
IOTYPE_CHECKINGAnyCallableGenericLiteralTypeVarUnioncastoverload)config)lib)STR_NA_VALUES)get_versionimport_optional_dependency)EmptyDataError)Appenderdoc)find_stack_level)check_dtype_backend)is_boolis_float
is_integeris_list_like)	DataFrame)_shared_docs)Version)	IOHandles
get_handlestringify_pathvalidate_header_arg)fill_mi_headerget_default_engine
get_writermaybe_convert_usecolspop_header_name)
TextParser)validate_integer)TracebackType)
DtypeArgDtypeBackendExcelWriterIfSheetExistsFilePathIntStrT
ReadBufferSelfSequenceNotStrStorageOptionsWriteExcelBuffera  
Read an Excel file into a ``pandas`` ``DataFrame``.

Supports `xls`, `xlsx`, `xlsm`, `xlsb`, `odf`, `ods` and `odt` file extensions
read from a local filesystem or URL. Supports an option to read
a single sheet or a list of sheets.

Parameters
----------
io : str, bytes, ExcelFile, xlrd.Book, path object, or file-like object
    Any valid string path is acceptable. 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.xlsx``.

    If you want to pass in a path object, pandas accepts any ``os.PathLike``.

    By file-like object, we refer to objects with a ``read()`` method,
    such as a file handle (e.g. via builtin ``open`` function)
    or ``StringIO``.

    .. deprecated:: 2.1.0
        Passing byte strings is deprecated. To read from a
        byte string, wrap it in a ``BytesIO`` object.
sheet_name : str, int, list, or None, default 0
    Strings are used for sheet names. Integers are used in zero-indexed
    sheet positions (chart sheets do not count as a sheet position).
    Lists of strings/integers are used to request multiple sheets.
    Specify ``None`` to get all worksheets.

    Available cases:

    * Defaults to ``0``: 1st sheet as a `DataFrame`
    * ``1``: 2nd sheet as a `DataFrame`
    * ``"Sheet1"``: Load sheet with name "Sheet1"
    * ``[0, 1, "Sheet5"]``: Load first, second and sheet named "Sheet5"
      as a dict of `DataFrame`
    * ``None``: All worksheets.

header : int, list of int, default 0
    Row (0-indexed) to use for the column labels of the parsed
    DataFrame. If a list of integers is passed those row positions will
    be combined into a ``MultiIndex``. Use None if there is no header.
names : array-like, default None
    List of column names to use. If file contains no header row,
    then you should explicitly pass header=None.
index_col : int, str, list of int, default None
    Column (0-indexed) to use as the row labels of the DataFrame.
    Pass None if there is no such column.  If a list is passed,
    those columns will be combined into a ``MultiIndex``.  If a
    subset of data is selected with ``usecols``, index_col
    is based on the subset.

    Missing values will be forward filled to allow roundtripping with
    ``to_excel`` for ``merged_cells=True``. To avoid forward filling the
    missing values use ``set_index`` after reading the data instead of
    ``index_col``.
usecols : str, list-like, or callable, default None
    * If None, then parse all columns.
    * If str, then indicates comma separated list of Excel column letters
      and column ranges (e.g. "A:E" or "A,C,E:F"). Ranges are inclusive of
      both sides.
    * If list of int, then indicates list of column numbers to be parsed
      (0-indexed).
    * If list of string, then indicates list of column names to be parsed.
    * If callable, then evaluate each column name against it and parse the
      column if the callable returns ``True``.

    Returns a subset of the columns according to behavior above.
dtype : Type name or dict of column -> type, default None
    Data type for data or columns. E.g. {{'a': np.float64, 'b': np.int32}}
    Use ``object`` to preserve data as stored in Excel and not interpret dtype,
    which will necessarily result in ``object`` dtype.
    If converters are specified, they will be applied INSTEAD
    of dtype conversion.
    If you use ``None``, it will infer the dtype of each column based on the data.
engine : {{'openpyxl', 'calamine', 'odf', 'pyxlsb', 'xlrd'}}, default None
    If io is not a buffer or path, this must be set to identify io.
    Engine compatibility :

    - ``openpyxl`` supports newer Excel file formats.
    - ``calamine`` supports Excel (.xls, .xlsx, .xlsm, .xlsb)
      and OpenDocument (.ods) file formats.
    - ``odf`` supports OpenDocument file formats (.odf, .ods, .odt).
    - ``pyxlsb`` supports Binary Excel files.
    - ``xlrd`` supports old-style Excel files (.xls).

    When ``engine=None``, the following logic will be used to determine the engine:

    - If ``path_or_buffer`` is an OpenDocument format (.odf, .ods, .odt),
      then `odf <https://pypi.org/project/odfpy/>`_ will be used.
    - Otherwise if ``path_or_buffer`` is an xls format, ``xlrd`` will be used.
    - Otherwise if ``path_or_buffer`` is in xlsb format, ``pyxlsb`` will be used.
    - Otherwise ``openpyxl`` will be used.
converters : dict, default None
    Dict of functions for converting values in certain columns. Keys can
    either be integers or column labels, values are functions that take one
    input argument, the Excel cell content, and return the transformed
    content.
true_values : list, default None
    Values to consider as True.
false_values : list, default None
    Values to consider as False.
skiprows : list-like, int, or callable, optional
    Line numbers to skip (0-indexed) or number of lines to skip (int) at the
    start of the file. If callable, the callable function will be evaluated
    against the row indices, returning True if the row should be skipped and
    False otherwise. An example of a valid callable argument would be ``lambda
    x: x in [0, 2]``.
nrows : int, default None
    Number of rows to parse.
na_values : scalar, str, list-like, or dict, default None
    Additional strings to recognize as NA/NaN. If dict passed, specific
    per-column NA values. By default the following values are interpreted
    as NaN: 'z', 'F   z    )subsequent_indenta_  '.
keep_default_na : bool, default True
    Whether or not to include the default NaN values when parsing the data.
    Depending on whether ``na_values`` is passed in, the behavior is as follows:

    * If ``keep_default_na`` is True, and ``na_values`` are specified,
      ``na_values`` is appended to the default NaN values used for parsing.
    * If ``keep_default_na`` is True, and ``na_values`` are not specified, only
      the default NaN values are used for parsing.
    * If ``keep_default_na`` is False, and ``na_values`` are specified, only
      the NaN values specified ``na_values`` are used for parsing.
    * If ``keep_default_na`` is False, and ``na_values`` are not specified, no
      strings will be parsed as NaN.

    Note that if `na_filter` is passed in as False, the ``keep_default_na`` and
    ``na_values`` parameters will be ignored.
na_filter : bool, default True
    Detect missing value markers (empty strings and the value of na_values). In
    data without any NAs, passing ``na_filter=False`` can improve the
    performance of reading a large file.
verbose : bool, default False
    Indicate number of NA values placed in non-numeric columns.
parse_dates : bool, list-like, or dict, default False
    The behavior is as follows:

    * ``bool``. If True -> try parsing the index.
    * ``list`` of int or names. e.g. If [1, 2, 3] -> try parsing columns 1, 2, 3
      each as a separate date column.
    * ``list`` of lists. e.g.  If [[1, 3]] -> combine columns 1 and 3 and parse as
      a single date column.
    * ``dict``, e.g. {{'foo' : [1, 3]}} -> parse columns 1, 3 as date and call
      result 'foo'

    If a column or index contains an unparsable date, the entire column or
    index will be returned unaltered as an object data type. If you don`t want to
    parse some cells as date just change their type in Excel to "Text".
    For non-standard datetime parsing, use ``pd.to_datetime`` after ``pd.read_excel``.

    Note: A fast-path exists for iso8601-formatted dates.
date_parser : function, optional
    Function to use for converting a sequence of string columns to an array of
    datetime instances. The default uses ``dateutil.parser.parser`` to do the
    conversion. Pandas will try to call `date_parser` in three different ways,
    advancing to the next if an exception occurs: 1) Pass one or more arrays
    (as defined by `parse_dates`) as arguments; 2) concatenate (row-wise) the
    string values from the columns defined by `parse_dates` into a single array
    and pass that; and 3) call `date_parser` once for each row using one or
    more strings (corresponding to the columns defined by `parse_dates`) as
    arguments.

    .. deprecated:: 2.0.0
       Use ``date_format`` instead, or read in as ``object`` and then apply
       :func:`to_datetime` as-needed.
date_format : str or dict of column -> format, default ``None``
   If used in conjunction with ``parse_dates``, will parse dates according to this
   format. For anything more complex,
   please read in as ``object`` and then apply :func:`to_datetime` as-needed.

   .. versionadded:: 2.0.0
thousands : str, default None
    Thousands separator for parsing string columns to numeric.  Note that
    this parameter is only necessary for columns stored as TEXT in Excel,
    any numeric columns will automatically be parsed, regardless of display
    format.
decimal : str, default '.'
    Character to recognize as decimal point for parsing string columns to numeric.
    Note that this parameter is only necessary for columns stored as TEXT in Excel,
    any numeric columns will automatically be parsed, regardless of display
    format.(e.g. use ',' for European data).

    .. versionadded:: 1.4.0

comment : str, default None
    Comments out remainder of line. Pass a character or characters to this
    argument to indicate comments in the input file. Any data between the
    comment string and the end of the current line is ignored.
skipfooter : int, default 0
    Rows at the end to skip (0-indexed).
{storage_options}

dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable'
    Back-end data type applied to the resultant :class:`DataFrame`
    (still experimental). Behaviour is as follows:

    * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
      (default).
    * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
      DataFrame.

    .. versionadded:: 2.0

engine_kwargs : dict, optional
    Arbitrary keyword arguments passed to excel engine.

Returns
-------
DataFrame or dict of DataFrames
    DataFrame from the passed in Excel file. See notes in sheet_name
    argument for more information on when a dict of DataFrames is returned.

See Also
--------
DataFrame.to_excel : Write DataFrame to an Excel file.
DataFrame.to_csv : Write DataFrame to a comma-separated values (csv) file.
read_csv : Read a comma-separated values (csv) file into DataFrame.
read_fwf : Read a table of fixed-width formatted lines into DataFrame.

Notes
-----
For specific information on the methods used for each Excel engine, refer to the pandas
:ref:`user guide <io.excel_reader>`

Examples
--------
The file can be read using the file name as string or an open file object:

>>> pd.read_excel('tmp.xlsx', index_col=0)  # doctest: +SKIP
       Name  Value
0   string1      1
1   string2      2
2  #Comment      3

>>> pd.read_excel(open('tmp.xlsx', 'rb'),
...               sheet_name='Sheet3')  # doctest: +SKIP
   Unnamed: 0      Name  Value
0           0   string1      1
1           1   string2      2
2           2  #Comment      3

Index and header can be specified via the `index_col` and `header` arguments

>>> pd.read_excel('tmp.xlsx', index_col=None, header=None)  # doctest: +SKIP
     0         1      2
0  NaN      Name  Value
1  0.0   string1      1
2  1.0   string2      2
3  2.0  #Comment      3

Column types are inferred but can be explicitly specified

>>> pd.read_excel('tmp.xlsx', index_col=0,
...               dtype={{'Name': str, 'Value': float}})  # doctest: +SKIP
       Name  Value
0   string1    1.0
1   string2    2.0
2  #Comment    3.0

True, False, and NA values, and thousands separators have defaults,
but can be explicitly specified, too. Supply the values you would like
as strings or lists of strings!

>>> pd.read_excel('tmp.xlsx', index_col=0,
...               na_values=['string1', 'string2'])  # doctest: +SKIP
       Name  Value
0       NaN      1
1       NaN      2
2  #Comment      3

Comment lines in the excel input file can be skipped using the
``comment`` kwarg.

>>> pd.read_excel('tmp.xlsx', index_col=0, comment='#')  # doctest: +SKIP
      Name  Value
0  string1    1.0
1  string2    2.0
2     None    NaN
.)headernames	index_colusecolsdtypeengine
converterstrue_valuesfalse_valuesskiprowsnrows	na_valueskeep_default_na	na_filterverboseparse_datesdate_parserdate_format	thousandsdecimalcomment
skipfooterstorage_optionsdtype_backendrT   c                   g N io
sheet_namer>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   s                             G/var/www/html/env/lib/python3.13/site-packages/pandas/io/excel/_base.py
read_excelr]   u      H     c                   g rW   rX   rY   s                             r\   r]   r]     r^   r_   )rT   TF.)r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   engine_kwargsc               h   [        U5        SnUc  0 n[        U [        5      (       d  Sn[        U UUUS9n O!U(       a  XpR                  :w  a  [	        S5      e U R                  UUUUUUUU	U
UUUUUUUUUUUUUUS9nU(       a  U R                  5         U$ ! U(       a  U R                  5         f f = f)NFT)rT   rC   rb   z_Engine should not be specified when passing an ExcelFile - ExcelFile already has the engine set)r[   r>   r?   r@   rA   rB   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rU   )r   
isinstance	ExcelFilerC   
ValueErrorparseclose)rZ   r[   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rb   should_closedatas                                r\   r]   r]     s    J &Lb)$$+'	
 
Fii'B
 	

xx!!#%+###!'/  
6 HHJK HHJ s   %B B1
_WorkbookTc                     \ rS rSr% S\S'     S     SS jjr\SS j5       rSS jrSS jr	\SS	 j5       r
SS
 jrSS jrSSS jjrS S jrS!S jr      S"S jr          S#S jrSSSSSSSSSSSSS\R&                  SSSSS\R&                  4                                   S$S jjrSrg)%BaseExcelReaderi  rk   bookNc                   Uc  0 n[        U[        5      (       a  [        U5      n[        USS 0S9U l        [        U[
        U R                  45      (       d  [        USUSS9U l        [        U R                  R                  U R                  5      (       a  U R                  R                  U l	        g [        U R                  R                  S5      (       aR  U R                  R                  R                  S5         U R                  U R                  R                  U5      U l	        g [        S5      e! [         a    U R                  5         e f = f)	Nmethod)handlecompressionrbFrT   is_textreadr   zCMust explicitly set engine if not passing in buffer or path for io.)rd   bytesr	   r&   handlesre   _workbook_classr'   rq   rn   hasattrseekload_workbook	Exceptionrh   rf   )selffilepath_or_bufferrT   rb   s       r\   __init__BaseExcelReader.__init__"  s#     M (%00!();!< %Hd3C
 ,y$:N:N.OPP%"D/SXDL dll))4+?+?@@++DIT\\((&11LL$$Q' ..t||/B/BMR	
 U 	  

s   ?+D6 6Ec                    [         erW   NotImplementedErrorr~   s    r\   ry   BaseExcelReader._workbook_classF      !!r_   c                    [         erW   r   )r~   r   rb   s      r\   r|   BaseExcelReader.load_workbookJ      !!r_   c                0   [        U S5      (       ak  [        U R                  S5      (       a  U R                  R                  5         O5[        U R                  S5      (       a  U R                  R                  5         U R                  R                  5         g )Nrn   rh   release_resources)rz   rn   rh   r   rx   r   s    r\   rh   BaseExcelReader.closeM  sd    4  tyy'** 		!$788 		++-r_   c                    [         erW   r   r   s    r\   sheet_namesBaseExcelReader.sheet_namesZ  r   r_   c                    [         erW   r   r~   names     r\   get_sheet_by_name!BaseExcelReader.get_sheet_by_name^  r   r_   c                    [         erW   r   )r~   indexs     r\   get_sheet_by_index"BaseExcelReader.get_sheet_by_indexa  r   r_   c                    [         erW   r   )r~   sheetrowss      r\   get_sheet_dataBaseExcelReader.get_sheet_datad  r   r_   c                \    [        U R                  5      nX:  a  [        SU SU S35      eg )NzWorksheet index z is invalid, z worksheets found)lenr   rf   )r~   r   n_sheetss      r\   raise_if_bad_sheet_by_index+BaseExcelReader.raise_if_bad_sheet_by_indexg  s=    t''("5'xj@QR  r_   c                @    XR                   ;  a  [        SU S35      eg )NzWorksheet named 'z' not found)r   rf   r   s     r\   raise_if_bad_sheet_by_name*BaseExcelReader.raise_if_bad_sheet_by_namen  s(    '''0kBCC (r_   c                T    SnSnXB:  a  U" U5      (       d  US-  nUS-  nXB:  a  M  U$ )a7  
Determine how many file rows are required to obtain `nrows` data
rows when `skiprows` is a function.

Parameters
----------
skiprows : function
    The function passed to read_excel by the user.
rows_to_use : int
    The number of rows that will be needed for the header and
    the data.

Returns
-------
int
r      rX   )r~   rG   rows_to_useirows_used_so_fars        r\   _check_skiprows_func$BaseExcelReader._check_skiprows_funcr  sA    * ,A;; A% FA , r_   c                *   Uc  gUc  SnO>[        U5      (       a  [        [        U5      nSU-   nO[        [        U5      nSUS   -   n[	        U5      (       a'  Ub$  [        [        U5      n[        U5      S:  a  US-  nUc  XT-   $ [        U5      (       a  [        [        U5      nXT-   U-   $ [	        U5      (       a2  SS jn[        [        U5      nU R                  [        Xc5      XT-   5      $ [        U5      (       a  U R                  UXT-   5      $ g)a  
If nrows specified, find the number of rows needed from the
file, otherwise return None.


Parameters
----------
header : int, list of int, or None
    See read_excel docstring.
index_col : int, str, list of int, or None
    See read_excel docstring.
skiprows : list-like, int, callable, or None
    See read_excel docstring.
nrows : int or None
    See read_excel docstring.

Returns
-------
int or None
Nr   c                
    X;   $ rW   rX   )rG   xs     r\   f%BaseExcelReader._calc_rows.<locals>.f  s
    }$r_   )rG   r   r   intreturnbool)	r!   r   r   r   r"   r   r   r   callable)r~   r>   r@   rG   rH   header_rowsr   s          r\   
_calc_rowsBaseExcelReader._calc_rows  s   6 =>K#v&Ff*K(F+FfRj.K I$9(F+F6{Qq &&hC*H&11!!% Hh/H,,WQ-A;CVWWH,,#  r_   r   Fra   c           
     
   [        U5        [        SU
5        Sn[        U[        5      (       a  UnSnO.Uc  U R                  nSnO[        U[
        5      (       a  U/nOU/n[        [        [        [           [        [
           4   [        [        R                  U5      R                  5       5      5      n0 nS nU GH  nUnU(       a  [        SU 35        [        U[
        5      (       a  U R                  U5      nOU R                  U5      nU R                  X$X5      nU R!                  UU5      n[#        US5      (       a  UR%                  5         ['        U5      nU(       d  [)        5       UU'   M  SnSn[+        U5      (       a*  [        U[,        5      (       d   eSn[/        U5      S:X  a  SnU(       a  [        [,        [           U5      S   nS n Ub  [+        U5      (       a  [        U[,        5      (       d   e/ n S/[/        US   5      -  n!U H  n"[1        U	5      (       a  [        U	[        5      (       d   eU"U	-  n"U"[/        U5      S-
  :  a  [3        SU" S	[/        U5      S-
   S
35      e[5        UU"   U!5      u  UU"'   n!Uc  My  [7        UU"   U5      u  n#n$U R9                  U#5        M     Sn%U(       a  U(       d  Ub  [        U[        5      (       a  U/n&O[        U[,        5      (       d   eUn&[        U[,        5      (       d   e[/        U5      [/        U5      :  aT  U[/        U5         n'[;        U'5       V(V)s/ s H  u  n(n)W!U(   (       a  M  U(U&;  d  M  U)PM     n*n(n)[=        S U* 5       5      n%[+        U5      (       a  Uc  Sn+O)[        U[        5      (       a  SU-   n+OS[?        U5      -   n+U%(       a  U+S-  n+U+[/        U5      :  an  [        U[,        5      (       d   eU HQ  n,UU+   U,   n-[A        U+S-   [/        U5      5       H*  n"UU"   U,   S:X  d	  UU"   U,   c
  U-UU"   U,'   M"  UU"   U,   n-M,     MS      [C        U40 SU_SU_SU_SU%_SU_SU_SU_SU	_SU
_SU_SS_SU_SU_SU_SU_SU_SU_SU_SU_SU_UD6n.U.RE                  U
S 9UU'   U (       a)  UU   RF                  RI                  U 5      UU   l#        GM  GM     Uc  [3        S#5      eU(       a  U$ UU   $ s  sn)n(f ! [J         a    [)        5       UU'    GMW  [L         a2  n/U/RN                  S    S!U S"3/U/RN                  SS  Q7U/l'        U/eS n/A/ff = f)$NrH   FTzReading sheet rh   r   r   zheader index z exceeds maximum index z	 of data.c              3  @   #    U  H  oS :H  =(       d    USL v   M     g7f) NrX   ).0r   s     r\   	<genexpr>(BaseExcelReader.parse.<locals>.<genexpr>M  s     )W1r'*>Q$Y*>s   r   r?   r>   r@   has_index_namesrB   rE   rF   rG   rI   skip_blank_linesrM   rN   rO   rP   rQ   rR   rS   rA   rU   )rH   z	 (sheet: )zSheet name is an empty list)(r)   r0   rd   listr   strr   r   r   dictfromkeyskeysprintr   r   r   r   rz   rh   r-   r#   r"   r   r   r!   rf   r*   r.   append	enumerateallmaxranger/   rv   columns	set_namesr   r}   args)0r~   r[   r>   r?   r@   rA   rB   rE   rF   rG   rH   rI   rL   rM   rN   rO   rP   rQ   rR   rS   rU   kwdsret_dictsheetsoutputlast_sheetname
asheetnamer   file_rows_neededrj   is_list_headeris_len_one_list_headerheader_namescontrol_rowrowheader_name_r   index_col_listpotential_index_namesr   r   potential_dataoffsetcollastparsererrs0                                                   r\   rg   BaseExcelReader.parse  s   0 	F#%( j$''FH%%FH
C(( \F \F eDItCy014f8M8R8R8T3UV J'Nzl34*c**..z://
;#v(R&&u.>?Dug&&+G4G%.[z""N%*"F##!&(3333!%v;!#-1*%hsmV4Q7  L!l6&:&:!&(3333!#fs47|3!C!(++)(C8888xSY]*(+C50G"4y1}oY8 
 .<DI{-S*DI{ ,)8cI)NQ$++K8 "& $O&<AVi--&/[N%i::::%.N "&(3333v;T*,0V,=) %..C$D&$DDAq*1~ 23>2I $D # &
 '*)W)W&WOI&&>F,,ZFV_F
 #aKF CI%%i::::(#F|C0#(!SY#?C#Cy~3tCy~7M15S	#'+Cy~	 $@  )'# " (	
 %4   !, ". &   ( &+ !, !, !,  (!" $#$ $%&  *'( $)* #0-2 &,[[u[%=z"17
1C1K1K1U1U$2F:&.  U !n !:;;M.))i&L " 1%.[z" "xx{m9ZLBRSXXab\R	s1   S3S3$S3BS99U	U-U

U)rn   rx   )NN)rT   StorageOptions | Nonerb   dict | Noner   None)r   ztype[_WorkbookT]r   rk   r   r   )r   z	list[str])r   r   )r   r   rW   )r   
int | None)r   r   r   r   )r   r   r   r   )rG   r   r   r   r   r   )
r>   int | Sequence[int] | Noner@   r   rG   4Sequence[int] | int | Callable[[int], object] | NonerH   r   r   r   )$r[   (str | int | list[int] | list[str] | Noner>   r   r?   'SequenceNotStr[Hashable] | range | Noner@   r   rB   DtypeArg | NonerE   Iterable[Hashable] | NonerF   r   rG   r   rH   r   rL   r   rM   list | dict | boolrN   Callable | lib.NoDefaultrO    dict[Hashable, str] | str | NonerP   
str | NonerQ   r   rR   r   rS   r   rU   DtypeBackend | lib.NoDefault)__name__
__module____qualname____firstlineno____annotations__r   propertyry   r|   rh   r   r   r   r   r   r   r   r   r   
no_defaultrg   __static_attributes__rX   r_   r\   rm   rm     s   

 26%)	" /" #	"
 
"H " "" " """"D  
	:>*> .> G	>
 > 
>D @A-.9=04!%1526IM */038< $"69nn+M*<M* +M* 7	M*
 .M* M* /M* 0M* GM* M* M* (M* .M*  6!M*" #M*$ %M*& 'M*( )M** 4+M* M*r_   rm   c                     \ rS rSr% SrS\S'   S\S'          S                 SS jjrSr\SS	 j5       r	\SS
 j5       r
\SS j5       r\S S j5       r    S!         S"S jjrS#S jr       S                 S$S jjr\SS j5       r\SS j5       r\SS j5       rSS jrS%S jr  S&S jr\S'S j5       rS(S jr        S)S jrS#S jrSrg)*ExcelWriteri  a  
Class for writing DataFrame objects into excel sheets.

Default is to use:

* `xlsxwriter <https://pypi.org/project/XlsxWriter/>`__ for xlsx files if xlsxwriter
  is installed otherwise `openpyxl <https://pypi.org/project/openpyxl/>`__
* `odswriter <https://pypi.org/project/odswriter/>`__ for ods files

See ``DataFrame.to_excel`` for typical usage.

The writer should be used as a context manager. Otherwise, call `close()` to save
and close any opened file handles.

Parameters
----------
path : str or typing.BinaryIO
    Path to xls or xlsx or ods file.
engine : str (optional)
    Engine to use for writing. If None, defaults to
    ``io.excel.<extension>.writer``.  NOTE: can only be passed as a keyword
    argument.
date_format : str, default None
    Format string for dates written into Excel files (e.g. 'YYYY-MM-DD').
datetime_format : str, default None
    Format string for datetime objects written into Excel files.
    (e.g. 'YYYY-MM-DD HH:MM:SS').
mode : {{'w', 'a'}}, default 'w'
    File mode to use (write or append). Append does not work with fsspec URLs.
{storage_options}

if_sheet_exists : {{'error', 'new', 'replace', 'overlay'}}, default 'error'
    How to behave when trying to write to a sheet that already
    exists (append mode only).

    * error: raise a ValueError.
    * new: Create a new sheet, with a name determined by the engine.
    * replace: Delete the contents of the sheet before writing to it.
    * overlay: Write contents to the existing sheet without first removing,
      but possibly over top of, the existing contents.

    .. versionadded:: 1.3.0

    .. versionchanged:: 1.4.0

       Added ``overlay`` option

engine_kwargs : dict, optional
    Keyword arguments to be passed into the engine. These will be passed to
    the following functions of the respective engines:

    * xlsxwriter: ``xlsxwriter.Workbook(file, **engine_kwargs)``
    * openpyxl (write mode): ``openpyxl.Workbook(**engine_kwargs)``
    * openpyxl (append mode): ``openpyxl.load_workbook(file, **engine_kwargs)``
    * odswriter: ``odf.opendocument.OpenDocumentSpreadsheet(**engine_kwargs)``

    .. versionadded:: 1.3.0

Notes
-----
For compatibility with CSV writers, ExcelWriter serializes lists
and dicts to strings before writing.

Examples
--------
Default usage:

>>> df = pd.DataFrame([["ABC", "XYZ"]], columns=["Foo", "Bar"])  # doctest: +SKIP
>>> with pd.ExcelWriter("path_to_file.xlsx") as writer:
...     df.to_excel(writer)  # doctest: +SKIP

To write to separate sheets in a single file:

>>> df1 = pd.DataFrame([["AAA", "BBB"]], columns=["Spam", "Egg"])  # doctest: +SKIP
>>> df2 = pd.DataFrame([["ABC", "XYZ"]], columns=["Foo", "Bar"])  # doctest: +SKIP
>>> with pd.ExcelWriter("path_to_file.xlsx") as writer:
...     df1.to_excel(writer, sheet_name="Sheet1")  # doctest: +SKIP
...     df2.to_excel(writer, sheet_name="Sheet2")  # doctest: +SKIP

You can set the date format or datetime format:

>>> from datetime import date, datetime  # doctest: +SKIP
>>> df = pd.DataFrame(
...     [
...         [date(2014, 1, 31), date(1999, 9, 24)],
...         [datetime(1998, 5, 26, 23, 33, 4), datetime(2014, 2, 28, 13, 5, 13)],
...     ],
...     index=["Date", "Datetime"],
...     columns=["X", "Y"],
... )  # doctest: +SKIP
>>> with pd.ExcelWriter(
...     "path_to_file.xlsx",
...     date_format="YYYY-MM-DD",
...     datetime_format="YYYY-MM-DD HH:MM:SS"
... ) as writer:
...     df.to_excel(writer)  # doctest: +SKIP

You can also append to an existing Excel file:

>>> with pd.ExcelWriter("path_to_file.xlsx", mode="a", engine="openpyxl") as writer:
...     df.to_excel(writer, sheet_name="Sheet3")  # doctest: +SKIP

Here, the `if_sheet_exists` parameter can be set to replace a sheet if it
already exists:

>>> with ExcelWriter(
...     "path_to_file.xlsx",
...     mode="a",
...     engine="openpyxl",
...     if_sheet_exists="replace",
... ) as writer:
...     df.to_excel(writer, sheet_name="Sheet1")  # doctest: +SKIP

You can also write multiple DataFrames to a single sheet. Note that the
``if_sheet_exists`` parameter needs to be set to ``overlay``:

>>> with ExcelWriter("path_to_file.xlsx",
...     mode="a",
...     engine="openpyxl",
...     if_sheet_exists="overlay",
... ) as writer:
...     df1.to_excel(writer, sheet_name="Sheet1")
...     df2.to_excel(writer, sheet_name="Sheet1", startcol=3)  # doctest: +SKIP

You can store Excel file in RAM:

>>> import io
>>> df = pd.DataFrame([["ABC", "XYZ"]], columns=["Foo", "Bar"])
>>> buffer = io.BytesIO()
>>> with pd.ExcelWriter(buffer) as writer:
...     df.to_excel(writer)

You can pack Excel file into zip archive:

>>> import zipfile  # doctest: +SKIP
>>> df = pd.DataFrame([["ABC", "XYZ"]], columns=["Foo", "Bar"])  # doctest: +SKIP
>>> with zipfile.ZipFile("path_to_file.zip", "w") as zf:
...     with zf.open("filename.xlsx", "w") as buffer:
...         with pd.ExcelWriter(buffer) as writer:
...             df.to_excel(writer)  # doctest: +SKIP

You can specify additional arguments to the underlying engine:

>>> with pd.ExcelWriter(
...     "path_to_file.xlsx",
...     engine="xlsxwriter",
...     engine_kwargs={{"options": {{"nan_inf_to_errors": True}}}}
... ) as writer:
...     df.to_excel(writer)  # doctest: +SKIP

In append mode, ``engine_kwargs`` are passed through to
openpyxl's ``load_workbook``:

>>> with pd.ExcelWriter(
...     "path_to_file.xlsx",
...     engine="openpyxl",
...     mode="a",
...     engine_kwargs={{"keep_vba": True}}
... ) as writer:
...     df.to_excel(writer, sheet_name="Sheet2")  # doctest: +SKIP
r   _enginetuple[str, ...]_supported_extensionsNc	                   U [         L a  Ub  [        U[        5      (       am  US:X  ag  [        U[        5      (       a&  [        R                  R                  U5      S   SS  n	OSn	 [        R                  " SU	 S3SS9nUS:X  a
  [        U	S	S
9nUc   e[        U5      n [        R                  U 5      $ ! [         a  n
[        SU	 S35      U
eS n
A
ff = f)Nautor   r   xlsx	io.excel.z.writerTsilentwritermodezNo engine for filetype: '')r  rd   r   ospathsplitextr   
get_optionr+   KeyErrorrf   r,   object__new__)clsr  rC   rO   datetime_formatr  rT   if_sheet_existsrb   extr   s              r\   r  ExcelWriter.__new__\  s     +~*VS"9"9f>NdC((''**404QR8C CR#..3%w/GPTUF'!3Ch!G
 %%% V$C~~c""   R$'@Q%GHcQRs   &)B4 4
C>CCc                    U R                   $ )z'Extensions that writer engine supports.)r  r   s    r\   supported_extensions ExcelWriter.supported_extensions  s     )))r_   c                    U R                   $ )zName of engine.)r  r   s    r\   rC   ExcelWriter.engine  s     ||r_   c                    [         e)z(Mapping of sheet names to sheet objects.r   r   s    r\   r   ExcelWriter.sheets  s
     "!r_   c                    [         e)z{
Book instance. Class type will depend on the engine used.

This attribute can be used to access engine-specific features.
r   r   s    r\   rn   ExcelWriter.book  s
     "!r_   c                    [         e)a  
Write given formatted cells into Excel an excel sheet

Parameters
----------
cells : generator
    cell of formatted data to save to Excel sheet
sheet_name : str, default None
    Name of Excel sheet, if None, then use self.cur_sheet
startrow : upper left cell row to dump data frame
startcol : upper left cell column to dump data frame
freeze_panes: int tuple of length 2
    contains the bottom-most row and right-most column to freeze
r   )r~   cellsr[   startrowstartcolfreeze_paness         r\   _write_cellsExcelWriter._write_cells  s
    , "!r_   c                    [         e)z
Save workbook to disk.
r   r   s    r\   _saveExcelWriter._save  s
     "!r_   c	                2   [        U[        5      (       a3  [        R                  R	                  U5      S   n	U R                  U	5        SU;  a  US-  nUR                  SS5      nUS;  a  [        SU S35      eU(       a  SU;  a  [        S5      eUc  S	nXpl        [        [        [        [           U5      S
S 0S9U l        [        U[        5      (       d  [        XUSS9U l        S U l        Uc  SU l        OX0l        Uc  SU l        OX@l        XPl        g )Nr   bazr+)Nerrornewreplaceoverlayr  z^' is not valid for if_sheet_exists. Valid options are 'error', 'new', 'replace' and 'overlay'.z7if_sheet_exists is only valid in append mode (mode='a')r3  rr   )rr   Frt   z
YYYY-MM-DDzYYYY-MM-DD HH:MM:SS)rd   r   r  r  r  check_extensionr5  rf   _if_sheet_existsr&   r   r   rw   _handlesr  r'   
_cur_sheet_date_format_datetime_format_mode)
r~   r  rC   rO   r  r  rT   r  rb   r  s
             r\   r   ExcelWriter.__init__  s*    dC  ''""4(,C  % d?CKD ||C&"NNO$ %M M  t4/VWW"%O / "ED!t/D
 $,,&OUDM  ,D +"$9D!$3!
r_   c                    U R                   $ zG
Format string for dates written into Excel files (e.g. 'YYYY-MM-DD').
)r;  r   s    r\   rO   ExcelWriter.date_format  s    
    r_   c                    U R                   $ r@  )r<  r   s    r\   r  ExcelWriter.datetime_format      
 $$$r_   c                    U R                   $ )zK
How to behave when writing to a sheet that already exists in append mode.
)r8  r   s    r\   r  ExcelWriter.if_sheet_exists  rD  r_   c                D    [        U R                  R                  SS5      $ )Nr   r   )getattrr9  rq   r   s    r\   
__fspath__ExcelWriter.__fspath__  s    t}}++VR88r_   c                @    Uc  U R                   nUc  [        S5      eU$ )Nz8Must pass explicit sheet_name or set _cur_sheet property)r:  rf   )r~   r[   s     r\   _get_sheet_nameExcelWriter._get_sheet_name  s)    JWXXr_   c                   Sn[        U5      (       a  [        U5      nX4$ [        U5      (       a  [        U5      nX4$ [	        U5      (       a  [        U5      nX4$ [        U[        R                  5      (       a  U R                  nX4$ [        U[        R                  5      (       a  U R                  nX4$ [        U[        R                  5      (       a  UR                  5       S-  nSnX4$ [        U5      nX4$ )z
Convert numpy types to Python types for the Excel writers.

Parameters
----------
val : object
    Value to be written into cells

Returns
-------
Tuple with the first element being the converted value and the second
    being an optional format
NiQ 0)r!   r   r    floatr   r   rd   datetimer<  dater;  	timedeltatotal_secondsr   )r~   valfmts      r\   _value_with_fmtExcelWriter._value_with_fmt  s    $ c??c(C x c]]*C x S\\s)C x X..//''C x X]]++##C x X//00##%-CC x c(Cxr_   c                   ^ TR                  S5      (       a  TSS m[        U4S jU R                   5       5      (       d  [        SU R                   ST S35      eg)	z
checks that path's extension against the Writer's supported
extensions.  If it isn't supported, raises UnsupportedFiletypeError.
ra   r   Nc              3  .   >#    U  H
  nTU;   v   M     g 7frW   rX   )r   	extensionr  s     r\   r   .ExcelWriter.check_extension.<locals>.<genexpr>;  s     O5N	3)#5Ns   zInvalid extension for engine 'z': 'r  T)
startswithanyr  rf   rC   )r  r  s    `r\   r7  ExcelWriter.check_extension3  sY     >>#ab'COS5N5NOOO=cjj\cURSTUUr_   c                    U $ rW   rX   r   s    r\   	__enter__ExcelWriter.__enter__@      r_   c                $    U R                  5         g rW   rh   r~   exc_type	exc_value	tracebacks       r\   __exit__ExcelWriter.__exit__C       	

r_   c                X    U R                  5         U R                  R                  5         g)z+synonym for save, to make it more file-likeN)r.  r9  rh   r   s    r\   rh   ExcelWriter.closeK  s    

r_   )r:  r;  r<  r9  r8  r=  )NNNwNNN)r  )FilePath | WriteExcelBuffer | ExcelWriterrC   r   rO   r   r  r   r  r   rT   r   r  ExcelWriterIfSheetExists | Nonerb   r   r   r8   )r   r  )r   r   )r   zdict[str, Any]r   )Nr   r   N)
r[   r   r(  r   r)  r   r*  ztuple[int, int] | Noner   r   r   )r  rp  rC   r   rO   r   r  r   r  r   rT   r   r  rq  rb   zdict[str, Any] | Noner   r   )r[   r   r   r   )r   zOtuple[int | float | bool | str | datetime.datetime | datetime.date, str | None])r  r   r   zLiteral[True]r   r8   rg  ztype[BaseException] | Nonerh  zBaseException | Noneri  zTracebackType | Noner   r   )r   r   r   r   __doc__r   r  _pathr   r  rC   r   rn   r+  r.  r   rO   r  r  rI  rL  rW  classmethodr7  ra  rj  rh   r  rX   r_   r\   r  r    s>   `p L**
 ""&&*15;?%) #7 #  #  	 #
 $ #  # / # 9 # # # 
 #F E* *   " " " " "&/3" " 	"
 " -" 
"0" ""&&*15;?/3575 5  	5
 $5 5 /5 95 -5 
5n ! ! % % % %9$
$L 	 	, ( (	
 
r_   r  )s   	    s   	    s   	    s   ࡱs   PKc           	     D  ^ [        U [        5      (       a  [        U 5      n [        U SUSS9 nUR                  nUR                  S5        UR                  [        5      nUc  [        S5      e[        U[        5      (       d   eUmUR                  S5        [        U4S j[         5       5      (       a
   SSS5        gTR                  [        5      (       d
   SSS5        g[        R                  " U5       nUR                  5        Vs/ s H"  ofR!                  S	S
5      R#                  5       PM$     nnSSS5        SW;   a
   SSS5        gSU;   a
   SSS5        gSU;   a
   SSS5        g SSS5        gs  snf ! , (       d  f       NM= f! , (       d  f       g= f)a  
Inspect the path or content of an excel file and get its format.

Adopted from xlrd: https://github.com/python-excel/xlrd.

Parameters
----------
content_or_path : str or file-like object
    Path to file or content of file to inspect. May be a URL.
{storage_options}

Returns
-------
str or None
    Format of file if it can be determined.

Raises
------
ValueError
    If resulting stream is empty.
BadZipFile
    If resulting stream does not have an XLS signature and is not a valid zipfile.
rs   Frt   r   Nzstream is emptyc              3  F   >#    U  H  nTR                  U5      v   M     g 7frW   )r]  )r   sigpeeks     r\   r   'inspect_excel_format.<locals>.<genexpr>  s     >~ts##~s   !xls\/zxl/workbook.xmlr	  zxl/workbook.binxlsbzcontent.xmlodszip)rd   rw   r	   r'   rq   r{   rv   	PEEK_SIZErf   r^  XLS_SIGNATURESr]  ZIP_SIGNATUREzipfileZipFilenamelistr5  lower)	content_or_pathrT   rq   streambufzfr   component_namesrz  s	           @r\   inspect_excel_formatr  [  sz   8 /5))!/2	
	Akk)$;.//#u%%%%A>~>>>
 
 //
 
" __V$ =?KKM<IDT3'--/M   % /3
 
4 /7
 
8 O+;
 
< =
 
( %$#
 
sT   B
FF%F;F )E;7F 9FF!F1F;F  
F	
F
Fc                  ~   \ rS rSr% SrSSKJr  SSKJr  SSK	J
r
  SSKJr  SSKJr  \\
\\\S	.rS
\S'      S       SS jjrS rSSSSSSSSSSSS\R(                  SSSS\R(                  4                               SS jjr\S 5       r\S 5       rSS jrSS jr        SS jrSrg)re   i  a  
Class for parsing tabular Excel sheets into DataFrame objects.

See read_excel for more documentation.

Parameters
----------
path_or_buffer : str, bytes, path object (pathlib.Path or py._path.local.LocalPath),
    A file-like object, xlrd workbook or openpyxl workbook.
    If a string or path object, expected to be a path to a
    .xls, .xlsx, .xlsb, .xlsm, .odf, .ods, or .odt file.
engine : str, default None
    If io is not a buffer or path, this must be set to identify io.
    Supported engines: ``xlrd``, ``openpyxl``, ``odf``, ``pyxlsb``, ``calamine``
    Engine compatibility :

    - ``xlrd`` supports old-style Excel files (.xls).
    - ``openpyxl`` supports newer Excel file formats.
    - ``odf`` supports OpenDocument file formats (.odf, .ods, .odt).
    - ``pyxlsb`` supports Binary Excel files.
    - ``calamine`` supports Excel (.xls, .xlsx, .xlsm, .xlsb)
      and OpenDocument (.ods) file formats.

    .. versionchanged:: 1.2.0

       The engine `xlrd <https://xlrd.readthedocs.io/en/latest/>`_
       now only supports old-style ``.xls`` files.
       When ``engine=None``, the following logic will be
       used to determine the engine:

       - If ``path_or_buffer`` is an OpenDocument format (.odf, .ods, .odt),
         then `odf <https://pypi.org/project/odfpy/>`_ will be used.
       - Otherwise if ``path_or_buffer`` is an xls format,
         ``xlrd`` will be used.
       - Otherwise if ``path_or_buffer`` is in xlsb format,
         `pyxlsb <https://pypi.org/project/pyxlsb/>`_ will be used.

       .. versionadded:: 1.3.0

       - Otherwise if `openpyxl <https://pypi.org/project/openpyxl/>`_ is installed,
         then ``openpyxl`` will be used.
       - Otherwise if ``xlrd >= 2.0`` is installed, a ``ValueError`` will be raised.

       .. warning::

        Please do not report issues when using ``xlrd`` to read ``.xlsx`` files.
        This is not supported, switch to using ``openpyxl`` instead.
engine_kwargs : dict, optional
    Arbitrary keyword arguments passed to excel engine.

Examples
--------
>>> file = pd.ExcelFile('myfile.xlsx')  # doctest: +SKIP
>>> with pd.ExcelFile("myfile.xls") as xls:  # doctest: +SKIP
...     df1 = pd.read_excel(xls, "Sheet1")  # doctest: +SKIP
r   )CalamineReader)	ODFReader)OpenpyxlReader)PyxlsbReader)
XlrdReader)xlrdopenpyxlodfpyxlsbcalaminezMapping[str, Any]_enginesNc                |   Uc  0 nUb  X R                   ;  a  [        SU 35      e[        U[        5      (       a-  [	        U5      n[
        R                  " S[        [        5       S9  Xl	        [        U5      U l        [        SSS9c  S nOSS Kn[        [        U5      5      nUca  Ub  [        UWR                   5      (       a  SnO[#        XS	9nUc  [        S
5      e[$        R&                  " SU S3SS9nUS:X  a
  [)        USS9nUc   eX l        X0l        U R                   U   " U R                  UUS9U l        g )NzUnknown engine: zPassing bytes to 'read_excel' is deprecated and will be removed in a future version. To read from a byte string, wrap it in a `BytesIO` object.)
stacklevelr  ignore)errorsr   r|  )r  rT   zLExcel file format cannot be determined, you must specify an engine manually.r
  z.readerTr  r  readerr  )rT   rb   )r  rf   rd   rw   r	   warningswarnFutureWarningr   rZ   r(   _ior   r  r%   r   Bookr  r   r  r+   rC   rT   _reader)r~   path_or_bufferrC   rT   rb   xlrd_versionr  r  s           r\   r   ExcelFile.__init__  sQ     M&"=/x899 ne,,$^4NMM> +- !!.1 &fX>FL";t#45L> 'J~tyy,Q,Q*$2 ;$. 
 &&3%w'?MF+Ch?!!!.}}V,HH+'
r_   c                    U R                   $ rW   )r  r   s    r\   rI  ExcelFile.__fspath__%  s    xxr_   Fc                    U R                   R                  " S0 SU_SU_SU_SU_SU_SU_SU_SU_S	U	_S
U
_SU_SU_SU_SU_SU_SU_SU_SU_UD6$ )a  
Parse specified sheet(s) into a DataFrame.

Equivalent to read_excel(ExcelFile, ...)  See the read_excel
docstring for more info on accepted parameters.

Returns
-------
DataFrame or dict of DataFrames
    DataFrame from the passed in Excel file.

Examples
--------
>>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['A', 'B', 'C'])
>>> df.to_excel('myfile.xlsx')  # doctest: +SKIP
>>> file = pd.ExcelFile('myfile.xlsx')  # doctest: +SKIP
>>> file.parse()  # doctest: +SKIP
r[   r>   r?   r@   rA   rD   rE   rF   rG   rH   rI   rM   rN   rO   rP   rR   rS   rU   rX   )r  rg   )r~   r[   r>   r?   r@   rA   rD   rE   rF   rG   rH   rI   rM   rN   rO   rP   rR   rS   rU   r   s                       r\   rg   ExcelFile.parse(  s    P ||!! 
!

 
  	

 
 "
 $
 &
 
 
  
 $
 $
 $
  
  !
" "#
$ ('
 	
r_   c                .    U R                   R                  $ rW   )r  rn   r   s    r\   rn   ExcelFile.bookf  s    ||   r_   c                .    U R                   R                  $ rW   )r  r   r   s    r\   r   ExcelFile.sheet_namesj  s    ||'''r_   c                8    U R                   R                  5         g)zclose io if necessaryN)r  rh   r   s    r\   rh   ExcelFile.closen  s    r_   c                    U $ rW   rX   r   s    r\   ra  ExcelFile.__enter__r  rc  r_   c                $    U R                  5         g rW   re  rf  s       r\   rj  ExcelFile.__exit__u  rl  r_   )r  r  rC   rZ   rT   )NNN)rC   r   rT   r   rb   r   r   r   ) r[   r   r>   r   r?   r   r@   r   rE   r   rF   r   rG   r   rH   r   rM   r   rN   r   rO   z str | dict[Hashable, str] | NonerP   r   rR   r   rS   r   rU   r   r   z7DataFrame | dict[str, DataFrame] | dict[int, DataFrame]r   rr  rs  )r   r   r   r   rt  pandas.io.excel._calaminer  pandas.io.excel._odfreaderr  pandas.io.excel._openpyxlr  pandas.io.excel._pyxlsbr  pandas.io.excel._xlrdr  r  r   r   rI  r   r   rg   r   rn   r   rh   ra  rj  r  rX   r_   r\   re   re     s   7r 94840 ""#H  "15%)@
 @
 /	@

 #@
 
@
D
 @A-.9=041526IM */038< $"69nn'<
<<
 +<
 7	<

 .<
 /<
 0<
 G<
 <
 (<
 .<
 6<
  !<
" #<
$ %<
& 4'<
* 
A+<
| ! ! ( (, ( (	
 
r_   re   ).)2r[   z	str | intr>   r   r?   r   r@    int | str | Sequence[int] | NonerA   Hint | str | Sequence[int] | Sequence[str] | Callable[[str], bool] | NonerB   r   rC   ?Literal['xlrd', 'openpyxl', 'odf', 'pyxlsb', 'calamine'] | NonerD   0dict[str, Callable] | dict[int, Callable] | NonerE   r   rF   r   rG   r   rH   r   rJ   r   rK   r   rL   r   rM   r   rN   r   rO   r   rP   r   rQ   r   rR   r   rS   r   rT   r:   rU   r   r   r#   )2r[   zlist[IntStrT] | Noner>   r   r?   r   r@   r  rA   r  rB   r   rC   r  rD   r  rE   r   rF   r   rG   r   rH   r   rJ   r   rK   r   rL   r   rM   r   rN   r   rO   r   rP   r   rQ   r   rR   r   rS   r   rT   r:   rU   r   r   zdict[IntStrT, DataFrame])r   )4r[   z str | int | list[IntStrT] | Noner>   r   r?   r   r@   r  rA   r  rB   r   rC   r  rD   r  rE   r   rF   r   rG   r   rH   r   rJ   r   rK   r   rL   r   rM   r   rN   r   rO   r   rP   r   rQ   r   rR   r   rS   r   rT   r   rU   r   rb   r   r   z$DataFrame | dict[IntStrT, DataFrame]rW   )r  zFilePath | ReadBuffer[bytes]rT   r   r   r   )e
__future__r   collections.abcr   r   r   r   rQ  	functoolsr   rZ   r	   r  textwrapr
   typingr   r   r   r   r   r   r   r   r   r   r  r  pandas._configr   pandas._libsr   pandas._libs.parsersr   pandas.compat._optionalr   r   pandas.errorsr   pandas.util._decoratorsr   r   pandas.util._exceptionsr   pandas.util._validatorsr   pandas.core.dtypes.commonr   r    r!   r"   pandas.core.framer#   pandas.core.shared_docsr$   pandas.util.versionr%   pandas.io.commonr&   r'   r(   r)   pandas.io.excel._utilr*   r+   r,   r-   r.   pandas.io.parsersr/   pandas.io.parsers.readersr0   typesr1   pandas._typingr2   r3   r4   r5   r6   r7   r8   r9   r:   r;   joinsorted_read_excel_docr]   r   rk   rm   r  r  r  r   mapr   r  r  re   rX   r_   r\   <module>r     s+   "     	      !  . ) 5 7  ( 0 '   ) 6#  qd 6;;vm,-rVLerMffgY | 
  #
 *-5825  NQCF-0.1EH&),/47&)25C# #
 '# 3# 0## # L#  A!#" +##$ ,%#& C'#( )#, -#. /#0 1#2 $3#4 *5#6 27#8 9#: ;#< =#> ?#@ $A#B 0C#D E# 
#L 
 *-5825  NQCF-0.1EH&),/47&)25C# %#
 '# 3# 0## # L#  A!#" +##$ ,%#& C'#( )#, -#. /#0 1#2 $3#4 *5#6 27#8 9#: ;#< =#> ?#@ $A#B 0C#D E# 
#L \"345	/ 45T *+5926 !NRCG-1.2EI &+,/NN48 -125..!%CT0T '	T
 3T 0TT T LT AT  +!T" ,#T$ C%T& 'T* +T, -T. /T0 $1T2 *3T4 25T6 7T8 9T: ;T< =T> +?T@ 0ATB CTD *ET  6Tn \"
}*gj) }*@ \"345n'*% n 6nb C=*::;<	 \"345 .2<1<*< < 6<~` `r_   