
    \
qidk             -      P   U d Z ddlmZ ddlmZmZ ddlZddlZddlm	Z	m
Z
mZmZmZmZmZmZmZmZ ddlZddlZddlmZ ddlmZ ddlmZmZ dd	lmZ dd
lm Z  ddl!m"Z" ddl#m$Z$m%Z%m&Z&m'Z'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0m1Z1m2Z2m3Z3 ddl4m5Z5 ddl6m7Z7m8Z8m9Z9 ddl:m;Z; ddl<m=Z=m>Z> e
rDddl?m@Z@mAZAmBZBmCZCmDZD ddlEmFZF ddlGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQ  G d deeeM         d          ZRneSZR G d de          ZTdddddZUdeVd <    G d! d"e          ZWd#d$dd%ZXd"eVd&<   d'hZYd(d)hZZh d*Z[eddd3            Z\eddd5            Z\eddd7            Z\	 ddd9Z\dd<Z]dd@Z^ed+dAddH            Z_ed+dIddK            Z_ed+d+dLddO            Z_ed+d+dLddP            Z_ edQ          ej`        dd#ej`        dddddddddddddddddddddd#ddRddSeja        dddddTddUeUd(         dddej`        dV+dd            Z_ed+dAdd            Zbed+dIdd            Zbed+d+dLdd            Zbed+d+dLdd            Zb edQ          ej`        dd#ej`        dddddddddddddddddddddd#ddRddSeja        dddddTddUeUd(         dddej`        dV+dd            Zbed+d+d+d+ddd            Zced+d+d+d+ddd            Zced+d+d+d+d+ddd            Zc edQ          d#dd$ddddd            Zc G d dGejd                  ZeddZfdddZgddZhddZiddZjddZkdZlddZmddZnddZodS )z
Module contains tools for processing files into DataFrames or other objects

GH#48849 provides a convenient way of deprecating keyword arguments
    )annotations)abcdefaultdictN)
IOTYPE_CHECKINGAnyGenericLiteralSelf	TypedDictUnpackcastoverload)lib)STR_NA_VALUES)AbstractMethodErrorParserWarning)
set_module)find_stack_level)check_dtype_backend)is_file_likeis_float
is_integeris_list_likepandas_dtype)Series)	DataFrame)
RangeIndex)	IOHandles
get_handlestringify_pathvalidate_header_arg)ArrowParserWrapper)
ParserBaseis_index_colparser_defaults)CParserWrapper)FixedWidthFieldParserPythonParser)CallableHashableIterableMappingSequence)TracebackType)
CompressionOptions	CSVEngineDtypeArgDtypeBackendFilePath	HashableT
IndexLabelReadCsvBufferStorageOptionsUsecolsArgTypec                     e Zd ZU ded<   ded<   ded<   ded<   ded	<   d
ed<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded <   ded!<   d"ed#<   d$ed%<   ded&<   ded'<   d(ed)<   d*ed+<   d,ed-<   d*ed.<   d,ed/<   ded0<   ded1<   d*ed2<   d*ed3<   d*ed4<   d*ed5<   d6ed7<   d,ed8<   ded9<   ded:<   d;ed<<   d=ed><   d?ed@<   dAS )B_read_sharedstr | None | lib.NoDefaultsep	delimiter-int | Sequence[int] | None | Literal['infer']header)Sequence[Hashable] | None | lib.NoDefaultnames"IndexLabel | Literal[False] | None	index_colr9   usecolsDtypeArg | NonedtypeCSVEngine | Noneengine#Mapping[HashableT, Callable] | None
converterslist | Nonetrue_valuesfalse_valuesboolskipinitialspace3list[int] | int | Callable[[Hashable], bool] | Noneskiprowsint
skipfooter
int | NonenrowsLHashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None	na_valueskeep_default_na	na_filterskip_blank_lines bool | Sequence[Hashable] | Noneparse_dates str | dict[Hashable, str] | Nonedate_formatdayfirstcache_datesr0   compression
str | None	thousandsstrdecimallineterminator	quotecharquotingdoublequote
escapecharcommentencodingencoding_errorsstr | csv.Dialect | Nonedialecton_bad_lines
low_memory
memory_map.Literal['high', 'legacy', 'round_trip'] | Nonefloat_precisionStorageOptions | Nonestorage_optionsDtypeBackend | lib.NoDefaultdtype_backendN__name__
__module____qualname____annotations__     y/var/www/html/bestrading.cuttalo.com/services/ml-inference/venv/lib/python3.11/site-packages/pandas/io/parsers/readers.pyr;   r;   `   s         	('''----====88885555    7777    !!!!EEEE	
 	
 	
 	
 	55555555''''""""####))))GGGG....333333r   r;   F)totalc                  8    e Zd ZU ded<   ded<   ded<   ded<   dS )	_C_Parser_DefaultsLiteral[True]rZ   rr   Literal[False]rs   Noneru   Nrz   r   r   r   r   r      sB         r   r   T)rZ   rr   rs   ru   _c_parser_defaultsc                  .    e Zd ZU ded<   ded<   ded<   dS )_Fwf_DefaultszLiteral['infer']colspecszLiteral[100]infer_nrowsr   widthsNrz   r   r   r   r   r      s1         LLLLLr   r   inferd   )r   r   r   _fwf_defaultsrT   rr   ru   >   rV   rl   rp   ri   r`   iterator	chunksizerd   rK   rr   rs   rT   rg   ru   rP   .namere   valr   min_valrS   returnc                    d S Nr   r   r   r   s      r   validate_integerr          HKr   floatc                    d S r   r   r   s      r   r   r      r   r   rU   c                    d S r   r   r   s      r   r   r      s    TWTWr   int | float | Nonec                   ||S d| dd|d}t          |          r2t          |          |k    rt          |          t          |          }n$t          |          r||k    st          |          t          |          S )a  
    Checks whether the 'name' parameter for parsing is either
    an integer OR float that can SAFELY be cast to an integer
    without losing accuracy. Raises a ValueError if that is
    not the case.

    Parameters
    ----------
    name : str
        Parameter name (used for error reporting)
    val : int or float
        The value to check
    min_val : int
        Minimum allowed value (val < min_val will result in a ValueError)
    N'sz' must be an integer >=d)r   rS   
ValueErrorr   )r   r   r   msgs       r   r   r      s    $ {

8d
8
8
8W
8
8
8C}} s88s??S//!#hhoo #..oos88Or   rB   Sequence[Hashable] | Nonec                    | vt          |           t          t          |                     k    rt          d          t          | d          s+t	          | t
          j                  st          d          dS dS dS )aZ  
    Raise ValueError if the `names` parameter contains duplicates or has an
    invalid data type.

    Parameters
    ----------
    names : array-like or None
        An array containing a list of the names used for the output DataFrame.

    Raises
    ------
    ValueError
        If names are not unique or are not ordered (e.g. set).
    Nz Duplicate names are not allowed.F)
allow_setsz&Names should be an ordered collection.)lensetr   r   
isinstancer   KeysView)rB   s    r   _validate_namesr      s     u::SZZ((?@@@5111	G5?s|5T5T	G EFFF 	G 	G 	G 	Gr   filepath_or_buffer4FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str]DataFrame | TextFileReaderc                   |                     dd          !|                     dd          d|d<   nd|d<   |                     dd          }|                     dd          }|                     dd	          }t          |t                    s$t          d
t	          |          j                   |                     d          dk    r#|rt          d          |t          d          nt          d|d          }|                     dd          }t          |                     dd                     t          | fi |}|s|r|S |5  |	                    |          cddd           S # 1 swxY w Y   dS )zGeneric reader of line files.r]   Nr_   FTr   r   rn   strictz&encoding_errors must be a string, got rI   pyarrowz@The 'iterator' option is not supported with the 'pyarrow' enginezAThe 'chunksize' option is not supported with the 'pyarrow' engine   rV   rB   )
getr   re   r   typer{   r   r   TextFileReaderread)r   kwdsr   r   errorsrV   parsers          r   _readr     s    xxt$$,88M4((0"'D"&D xx
E**Hd++I XX'22Ffc"" 
LT&\\5JLL
 
 	
 xxY&& 	R    S   !
 %[)Q??	HHWd##E DHHWd++,,, .77$77F H 	 " "{{5!!" " " " " " " " " " " " " " " " " "s   E00E47E4)r   r   r   r   r   Unpack[_read_shared[HashableT]]r   c                   d S r   r   r   r   r   r   s       r   read_csvr   5  	     Sr   )r   rO   c                   d S r   r   r   s       r   r   r   ?  r   r   )r   r   r   r   c                   d S r   r   r   s       r   r   r   I  	     r   c                   d S r   r   r   s       r   r   r   S  	     "%r   pandas."r   error)+r=   r>   r@   rB   rD   rE   rG   rI   rK   rM   rN   rP   rR   rT   rV   rX   rY   rZ   r[   r]   r_   r`   ra   r   r   rb   rd   rf   rg   rh   ri   rj   rk   rl   rm   rn   rp   rq   rr   rs   ru   rw   ry   r=   r<   r>   r@   r?   rA   rD   rC   rE   r9   rG   rF   rI   rH   rK   rJ   rM   rL   rN   rP   rR   rQ   rV   rX   rW   rY   rZ   r[   r]   r\   r_   r^   r`   ra   rb   r0   rd   rc   rf   rg   rh   ri   rj   rk   rl   rm   rn   rp   ro   rq   rs   rt   rw   rv   ry   rx   c       +   
         t                                                      },|,d= |,d= t          |%||||&|ddi|+          }-|,                    |-           t	          | |,          S )aNV  
    Read a comma-separated values (csv) file into DataFrame.

    Also supports optionally iterating or breaking of the file
    into chunks.

    Additional help can be found in the online docs for
    `IO Tools <https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html>`_.

    Parameters
    ----------
    filepath_or_buffer : str, 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, gs, and file. For file URLs, a host is
        expected. A local file could be: file://localhost/path/to/table.csv.

        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``.
    sep : str, default ','
        Character or regex pattern to treat as the delimiter. If ``sep=None``, the
        C engine cannot automatically detect
        the separator, but the Python parsing engine can, meaning the latter will
        be used and automatically detect the separator from only the first valid
        row of the file by Python's builtin sniffer tool, ``csv.Sniffer``.
        In addition, separators longer than 1 character and different from
        ``'\s+'`` will be interpreted as regular expressions and will also force
        the use of the Python parsing engine. Note that regex delimiters are prone
        to ignoring quoted data. Regex example: ``'\r\t'``.
    delimiter : str, optional
        Alias for ``sep``.
    header : int, Sequence of int, 'infer' or None, default 'infer'
        Row number(s) containing column labels and marking the start of the
        data (zero-indexed). Default behavior is to infer the column names:
        if no ``names``
        are passed the behavior is identical to ``header=0`` and column
        names are inferred from the first line of the file, if column
        names are passed explicitly to ``names`` then the behavior is identical to
        ``header=None``. Explicitly pass ``header=0`` to be able to
        replace existing names. The header can be a list of integers that
        specify row locations for a :class:`~pandas.MultiIndex` on the columns
        e.g. ``[0, 1, 3]``. Intervening rows that are not specified will be
        skipped (e.g. 2 in this example is skipped). Note that this
        parameter ignores commented lines and empty lines if
        ``skip_blank_lines=True``, so ``header=0`` denotes the first line of
        data rather than the first line of the file.

        When inferred from the file contents, headers are kept distinct from
        each other by renaming duplicate names with a numeric suffix of the form
        ``".{{count}}"`` starting from 1, e.g. ``"foo"`` and ``"foo.1"``.
        Empty headers are named ``"Unnamed: {{i}}"`` or ``
        "Unnamed: {{i}}_level_{{level}}"``
        in the case of MultiIndex columns.
    names : Sequence of Hashable, optional
        Sequence of column labels to apply. If the file contains a header row,
        then you should explicitly pass ``header=0`` to override the column names.
        Duplicates in this list are not allowed.
    index_col : Hashable, Sequence of Hashable or False, optional
        Column(s) to use as row label(s), denoted either by column labels or column
        indices.  If a sequence of labels or indices is given,
        :class:`~pandas.MultiIndex`
        will be formed for the row labels.

        Note: ``index_col=False`` can be used to force pandas to *not* use the first
        column as the index, e.g., when you have a malformed file with delimiters at
        the end of each line.
    usecols : Sequence of Hashable or Callable, optional
        Subset of columns to select, denoted either
        by column labels or column indices.
        If list-like, all elements must either
        be positional (i.e. integer indices into the document columns) or strings
        that correspond to column names provided either by the user in ``names`` or
        inferred from the document header row(s).
        If ``names`` are given, the document
        header row(s) are not taken into account. For example, a valid list-like
        ``usecols`` parameter would be ``[0, 1, 2]`` or ``['foo', 'bar', 'baz']``.
        Element order is ignored, so ``usecols=[0, 1]`` is the same as ``[1, 0]``.
        To instantiate a :class:`~pandas.DataFrame` from ``data`` with element order
        preserved use ``pd.read_csv(data, usecols=['foo', 'bar'])[['foo', 'bar']]``
        for columns in ``['foo', 'bar']`` order or
        ``pd.read_csv(data, usecols=['foo', 'bar'])[['bar', 'foo']]``
        for ``['bar', 'foo']`` order.

        If callable, the callable function will be evaluated against the column
        names, returning names where the callable function evaluates to ``True``. An
        example of a valid callable argument would be ``lambda x: x.upper() in
        ['AAA', 'BBB', 'DDD']``. Using this parameter results in much faster
        parsing time and lower memory usage.
    dtype : dtype or dict of {{Hashable : dtype}}, optional
        Data type(s) to apply to either the whole dataset or individual columns.
        E.g., ``{{'a': np.float64, 'b': np.int32, 'c': 'Int64'}}``
        Use ``str`` or ``object`` together with suitable ``na_values`` settings
        to preserve and not interpret ``dtype``.
        If ``converters`` are specified, they will be applied INSTEAD
        of ``dtype`` conversion. Specify a ``defaultdict`` as input where
        the default determines the ``dtype``
        of the columns which are not explicitly
        listed.
    engine : {{'c', 'python', 'pyarrow'}}, optional
        Parser engine to use. The C and pyarrow engines are faster,
        while the python engine
        is currently more feature-complete. Multithreading
        is currently only supported by
        the pyarrow engine. Some features of the "pyarrow" engine
        are unsupported or may not work correctly.
    converters : dict of {{Hashable : Callable}}, optional
        Functions for converting values in specified columns. Keys can either
        be column labels or column indices.
    true_values : list, optional
        Values to consider as ``True`` in addition
        to case-insensitive variants of 'True'.
    false_values : list, optional
        Values to consider as ``False`` in addition to case-insensitive
        variants of 'False'.
    skipinitialspace : bool, default False
        Skip spaces after delimiter.
    skiprows : int, list of 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]``.
    skipfooter : int, default 0
        Number of lines at bottom of file to skip (Unsupported with ``engine='c'``).
    nrows : int, optional
        Number of rows of file to read. Useful for reading pieces of large files.
        Refers to the number of data rows in the returned DataFrame, excluding:

        * The header row containing column names.
        * Rows before the header row, if ``header=1`` or larger.

        Example usage:

        * To read the first 999,999 (non-header) rows:
          ``read_csv(..., nrows=999999)``

        * To read rows 1,000,000 through 1,999,999:
          ``read_csv(..., skiprows=1000000, nrows=999999)``

    na_values : Hashable, Iterable of Hashable or dict of {{Hashable : Iterable}},
        optional
        Additional strings to recognize as ``NA``/``NaN``. If ``dict``
        passed, specific
        per-column ``NA`` values.  By default the following values
        are interpreted as
        ``NaN``: empty string, "NaN", "N/A", "NULL", and other common
        representations of missing data.
    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 ``NA`` values, passing ``na_filter=False`` can improve the
        performance of reading a large file.
    skip_blank_lines : bool, default True
        If ``True``, skip over blank lines rather than interpreting as ``NaN`` values.
    parse_dates : bool, None, list of Hashable, default None
        The behavior is as follows:

        * ``bool``. If ``True`` -> try parsing the index.
        * ``None``. Behaves like ``True`` if ``date_format`` is specified.
        * ``list`` of ``int`` or names.
          e.g. If ``[1, 2, 3]`` -> try parsing columns 1, 2, 3
          each as a separate date column.

        If a column or index cannot be represented as an array of ``datetime``,
        say because of an unparsable value or a mixture of timezones, the column
        or index will be returned unaltered as an ``object`` data type. For
        non-standard ``datetime`` parsing, use :func:`~pandas.to_datetime` after
        :func:`~pandas.read_csv`.

        Note: A fast-path exists for iso8601-formatted dates.
    date_format : str or dict of column -> format, optional
        Format to use for parsing dates and/or times when
        used in conjunction with ``parse_dates``.
        The strftime to parse time, e.g. :const:`"%d/%m/%Y"`. See
        `strftime documentation
        <https://docs.python.org/3/library/datetime.html
        #strftime-and-strptime-behavior>`_ for more information on choices, though
        note that :const:`"%f"`` will parse all the way up to nanoseconds.
        You can also pass:

        - "ISO8601", to parse any `ISO8601 <https://en.wikipedia.org/wiki/ISO_8601>`_
          time string (not necessarily in exactly the same format);
        - "mixed", to infer the format for each element individually. This is risky,
          and you should probably use it along with `dayfirst`.

        .. versionadded:: 2.0.0
    dayfirst : bool, default False
        DD/MM format dates, international and European format.
    cache_dates : bool, default True
        If ``True``, use a cache of unique, converted dates to apply the ``datetime``
        conversion. May produce significant speed-up when parsing duplicate
        date strings, especially ones with timezone offsets.

    iterator : bool, default False
        Return ``TextFileReader`` object for iteration or getting chunks with
        ``get_chunk()``.
    chunksize : int, optional
        Number of lines to read from the file per chunk. Passing a value will cause the
        function to return a ``TextFileReader`` object for iteration.
        See the `IO Tools docs
        <https://pandas.pydata.org/pandas-docs/stable/io.html#io-chunking>`_
        for more information on ``iterator`` and ``chunksize``.

    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).
        If using 'zip' or 'tar', the ZIP file must contain only
        one data file to be read in.
        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.ZstdDecompressor``, ``lzma.LZMAFile`` or
        ``tarfile.TarFile``, respectively.
        As an example, the following could be passed for
        Zstandard decompression using a
        custom compression dictionary:
        ``compression={'method': 'zstd', 'dict_data': my_compression_dict}``.

    thousands : str (length 1), optional
        Character acting as the thousands separator in numerical values.
    decimal : str (length 1), default '.'
        Character to recognize as decimal point (e.g., use ',' for European data).
    lineterminator : str (length 1), optional
        Character used to denote a line break. Only valid with C parser.
    quotechar : str (length 1), optional
        Character used to denote the start and end of a quoted item. Quoted
        items can include the ``delimiter`` and it will be ignored.
    quoting : {{0 or csv.QUOTE_MINIMAL, 1 or csv.QUOTE_ALL,
        2 or csv.QUOTE_NONNUMERIC, 3 or csv.QUOTE_NONE}}, default csv.QUOTE_MINIMAL
        Control field quoting behavior per ``csv.QUOTE_*`` constants. Default is
        ``csv.QUOTE_MINIMAL`` (i.e., 0) which implies that
        only fields containing special
        characters are quoted (e.g., characters defined
        in ``quotechar``, ``delimiter``,
        or ``lineterminator``.
    doublequote : bool, default True
        When ``quotechar`` is specified and ``quoting`` is not ``QUOTE_NONE``, indicate
        whether or not to interpret two consecutive ``quotechar`` elements INSIDE a
        field as a single ``quotechar`` element.
    escapechar : str (length 1), optional
        Character used to escape other characters.
    comment : str (length 1), optional
        Character indicating that the remainder of line should not be parsed.
        If found at the beginning
        of a line, the line will be ignored altogether. This parameter must be a
        single character. Like empty lines (as long as ``skip_blank_lines=True``),
        fully commented lines are ignored by the parameter ``header`` but not by
        ``skiprows``. For example, if ``comment='#'``, parsing
        ``#empty\na,b,c\n1,2,3`` with ``header=0`` will result in ``'a,b,c'`` being
        treated as the header.
    encoding : str, optional, default 'utf-8'
        Encoding to use for UTF when reading/writing (ex. ``'utf-8'``). `List of Python
        standard encodings
        <https://docs.python.org/3/library/codecs.html#standard-encodings>`_ .

    encoding_errors : str, optional, default 'strict'
        How encoding errors are treated. `List of possible values
        <https://docs.python.org/3/library/codecs.html#error-handlers>`_ .

    dialect : str or csv.Dialect, optional
        If provided, this parameter will override values (default or not) for the
        following parameters: ``delimiter``, ``doublequote``, ``escapechar``,
        ``skipinitialspace``, ``quotechar``, and ``quoting``. If it is necessary to
        override values, a ``ParserWarning`` will be issued. See ``csv.Dialect``
        documentation for more details.
    on_bad_lines : {{'error', 'warn', 'skip'}} or Callable, default 'error'
        Specifies what to do upon encountering a bad line (a line with too many fields).
        Allowed values are:

        - ``'error'``, raise an Exception when a bad line is encountered.
        - ``'warn'``, raise a warning when a bad line is
          encountered and skip that line.
        - ``'skip'``, skip bad lines without raising or warning when
          they are encountered.
        - Callable, function that will process a single bad line.
            - With ``engine='python'``, function with signature
              ``(bad_line: list[str]) -> list[str] | None``.
              ``bad_line`` is a list of strings split by the ``sep``.
              If the function returns ``None``, the bad line will be ignored.
              If the function returns a new ``list`` of strings with
              more elements than
              expected, a ``ParserWarning`` will be emitted while
              dropping extra elements.
            - With ``engine='pyarrow'``, function with signature
              as described in pyarrow documentation: `invalid_row_handler
              <https://arrow.apache.org/docs/python
              /generated/pyarrow.csv.ParseOptions.html
              #pyarrow.csv.ParseOptions.invalid_row_handler>`_.

        .. versionchanged:: 2.2.0

            Callable for ``engine='pyarrow'``

    low_memory : bool, default True
        Internally process the file in chunks, resulting in lower memory use
        while parsing, but possibly mixed type inference.  To ensure no mixed
        types either set ``False``, or specify the type with the ``dtype`` parameter.
        Note that the entire file is read into a single :class:`~pandas.DataFrame`
        regardless, use the ``chunksize`` or ``iterator``
        parameter to return the data in
        chunks. (Only valid with C parser).
    memory_map : bool, default False
        If a filepath is provided for ``filepath_or_buffer``, map the file object
        directly onto memory and access the data directly from there. Using this
        option can improve performance because there is no longer any I/O overhead.
    float_precision : {{'high', 'legacy', 'round_trip'}}, optional
        Specifies which converter the C engine should use for floating-point
        values. The options are ``None`` or ``'high'`` for the ordinary converter,
        ``'legacy'`` for the original lower precision pandas converter, and
        ``'round_trip'`` for the round-trip converter.

    storage_options : dict, optional
        Extra options that make sense for a particular storage connection, e.g.
        host, port, username, password, etc. For HTTP(S) URLs the key-value pairs
        are forwarded to ``urllib.request.Request`` as header options. For other
        URLs (e.g. starting with "s3://", and "gcs://") the key-value pairs are
        forwarded to ``fsspec.open``. Please see ``fsspec`` and ``urllib`` for more
        details, and for more examples on storage options refer `here
        <https://pandas.pydata.org/docs/user_guide/io.html?
        highlight=storage_options#reading-writing-remote-files>`_.

    dtype_backend : {{'numpy_nullable', 'pyarrow'}}
        Back-end data type applied to the resultant :class:`DataFrame`
        (still experimental). If not specified, the default behavior
        is to not use nullable data types. If specified, the behavior
        is as follows:

        * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
        * ``"pyarrow"``: returns
          pyarrow-backed nullable :class:`ArrowDtype` :class:`DataFrame`

        .. versionadded:: 2.0

    Returns
    -------
    DataFrame or TextFileReader
        A comma-separated values (csv) file is returned as two-dimensional
        data structure with labeled axes.

    See Also
    --------
    DataFrame.to_csv : Write DataFrame to a comma-separated values (csv) file.
    read_table : Read general delimited file into DataFrame.
    read_fwf : Read a table of fixed-width formatted lines into DataFrame.

    Examples
    --------
    >>> pd.read_csv("data.csv")  # doctest: +SKIP
       Name  Value
    0   foo      1
    1   bar      2
    2  #baz      3

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

    >>> pd.read_csv("data.csv", header=None)  # doctest: +SKIP
          0      1
    0  Name  Value
    1   foo      1
    2   bar      2
    3  #baz      3

    >>> pd.read_csv("data.csv", index_col="Value")  # doctest: +SKIP
           Name
    Value
    1       foo
    2       bar
    3      #baz

    Column types are inferred but can be explicitly specified using the dtype argument.

    >>> pd.read_csv("data.csv", dtype={{"Value": float}})  # doctest: +SKIP
       Name  Value
    0   foo    1.0
    1   bar    2.0
    2  #baz    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_csv("data.csv", na_values=["foo", "bar"])  # doctest: +SKIP
       Name  Value
    0   NaN      1
    1   NaN      2
    2  #baz      3

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

    >>> pd.read_csv("data.csv", comment="#")  # doctest: +SKIP
      Name  Value
    0  foo      1
    1  bar      2

    By default, columns with dates will be read as ``object`` rather than  ``datetime``.

    >>> df = pd.read_csv("tmp.csv")  # doctest: +SKIP

    >>> df  # doctest: +SKIP
       col 1       col 2            col 3
    0     10  10/04/2018  Sun 15 Jan 2023
    1     20  15/04/2018  Fri 12 May 2023

    >>> df.dtypes  # doctest: +SKIP
    col 1     int64
    col 2    object
    col 3    object
    dtype: object

    Specific columns can be parsed as dates by using the `parse_dates` and
    `date_format` arguments.

    >>> df = pd.read_csv(
    ...     "tmp.csv",
    ...     parse_dates=[1, 2],
    ...     date_format={{"col 2": "%d/%m/%Y", "col 3": "%a %d %b %Y"}},
    ... )  # doctest: +SKIP

    >>> df.dtypes  # doctest: +SKIP
    col 1             int64
    col 2    datetime64[ns]
    col 3    datetime64[ns]
    dtype: object
    r   r=   r>   ,defaultsry   localscopy_refine_defaults_readupdater   .r   r=   r>   r@   rB   rD   rE   rG   rI   rK   rM   rN   rP   rR   rT   rV   rX   rY   rZ   r[   r]   r_   r`   ra   r   r   rb   rd   rf   rg   rh   ri   rj   rk   rl   rm   rn   rp   rq   rr   rs   ru   rw   ry   r   kwds_defaultss.                                                 r   r   r   ]  s|    x 88==??D!"U)s##	 	 	M 	KK#T***r   c                   d S r   r   r   s       r   
read_tabler   l  r   r   c                   d S r   r   r   s       r   r   r   v  r   r   c                   d S r   r   r   s       r   r   r     r   r   c                   d S r   r   r   s       r   r   r     r   r   c       +   
         t                                                      },|,d= |,d= t          |%||||&|ddi|+          }-|,                    |-           t	          | |,          S )amV  
    Read general delimited file into DataFrame.

    Also supports optionally iterating or breaking of the file
    into chunks.

    Additional help can be found in the online docs for
    `IO Tools <https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html>`_.

    Parameters
    ----------
    filepath_or_buffer : str, 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, gs, and file. For file URLs, a host is
        expected. A local file could be: file://localhost/path/to/table.csv.

        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``.
    sep : str, default '\t' (tab-stop)
        Character or regex pattern to treat as the delimiter. If ``sep=None``, the
        C engine cannot automatically detect
        the separator, but the Python parsing engine can, meaning the latter will
        be used and automatically detect the separator from only the first valid
        row of the file by Python's builtin sniffer tool, ``csv.Sniffer``.
        In addition, separators longer than 1 character and different from
        ``'\s+'`` will be interpreted as regular expressions and will also force
        the use of the Python parsing engine. Note that regex delimiters are prone
        to ignoring quoted data. Regex example: ``'\r\t'``.
    delimiter : str, optional
        Alias for ``sep``.
    header : int, Sequence of int, 'infer' or None, default 'infer'
        Row number(s) containing column labels and marking the start of the
        data (zero-indexed). Default behavior
        is to infer the column names: if no ``names``
        are passed the behavior is identical to ``header=0`` and column
        names are inferred from the first line of the file, if column
        names are passed explicitly to ``names`` then the behavior is identical to
        ``header=None``. Explicitly pass ``header=0`` to be able to
        replace existing names. The header can be a list of integers that
        specify row locations for a :class:`~pandas.MultiIndex` on the columns
        e.g. ``[0, 1, 3]``. Intervening rows that are not specified will be
        skipped (e.g. 2 in this example is skipped). Note that this
        parameter ignores commented lines and empty lines if
        ``skip_blank_lines=True``, so ``header=0`` denotes the first line of
        data rather than the first line of the file.

        When inferred from the file contents, headers are kept distinct from
        each other by renaming duplicate names with a numeric suffix of the form
        ``".{{count}}"`` starting from 1, e.g. ``"foo"`` and ``"foo.1"``.
        Empty headers are named
        ``"Unnamed: {{i}}"`` or ``"Unnamed: {{i}}_level_{{level}}"``
        in the case of MultiIndex columns.
    names : Sequence of Hashable, optional
        Sequence of column labels to apply. If the file contains a header row,
        then you should explicitly pass ``header=0`` to override the column names.
        Duplicates in this list are not allowed.
    index_col : Hashable, Sequence of Hashable or False, optional
        Column(s) to use as row label(s), denoted either by column labels or column
        indices.  If a sequence of labels or indices is given,
        :class:`~pandas.MultiIndex`
        will be formed for the row labels.

        Note: ``index_col=False`` can be used to force pandas to *not* use the first
        column as the index, e.g., when you have a malformed file with delimiters at
        the end of each line.
    usecols : Sequence of Hashable or Callable, optional
        Subset of columns to select, denoted either by column labels or column indices.
        If list-like, all elements must either
        be positional (i.e. integer indices into the document columns) or strings
        that correspond to column names provided either by the user in ``names`` or
        inferred from the document header row(s). If ``names`` are given, the document
        header row(s) are not taken into account. For example, a valid list-like
        ``usecols`` parameter would be ``[0, 1, 2]`` or ``['foo', 'bar', 'baz']``.
        Element order is ignored, so ``usecols=[0, 1]`` is the same as ``[1, 0]``.
        To instantiate a :class:`~pandas.DataFrame` from ``data`` with element order
        preserved use ``pd.read_csv(data, usecols=['foo', 'bar'])[['foo', 'bar']]``
        for columns in ``['foo', 'bar']`` order or
        ``pd.read_csv(data, usecols=['foo', 'bar'])[['bar', 'foo']]``
        for ``['bar', 'foo']`` order.

        If callable, the callable function will be evaluated against the column
        names, returning names where the callable function evaluates to ``True``. An
        example of a valid callable argument would be ``lambda x: x.upper() in
        ['AAA', 'BBB', 'DDD']``. Using this parameter results in much faster
        parsing time and lower memory usage.
    dtype : dtype or dict of {{Hashable : dtype}}, optional
        Data type(s) to apply to either the whole dataset or individual columns.
        E.g., ``{{'a': np.float64, 'b': np.int32, 'c': 'Int64'}}``
        Use ``str`` or ``object`` together with suitable ``na_values`` settings
        to preserve and not interpret ``dtype``.
        If ``converters`` are specified, they will be applied INSTEAD
        of ``dtype`` conversion. Specify a ``defaultdict`` as input where
        the default determines the ``dtype`` of the columns which
        are not explicitly listed.
    engine : {{'c', 'python', 'pyarrow'}}, optional
        Parser engine to use. The C and pyarrow engines are faster,
        while the python engine
        is currently more feature-complete. Multithreading is
        currently only supported by
        the pyarrow engine. The 'pyarrow' engine is an *experimental* engine,
        and some features are unsupported, or may not work correctly, with this engine.
    converters : dict of {{Hashable : Callable}}, optional
        Functions for converting values in specified columns. Keys can either
        be column labels or column indices.
    true_values : list, optional
        Values to consider as ``True`` in addition to
        case-insensitive variants of 'True'.
    false_values : list, optional
        Values to consider as ``False`` in addition
        to case-insensitive variants of 'False'.
    skipinitialspace : bool, default False
        Skip spaces after delimiter.
    skiprows : int, list of 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]``.
    skipfooter : int, default 0
        Number of lines at bottom of file to skip (Unsupported with ``engine='c'``).
    nrows : int, optional
        Number of rows of file to read. Useful for reading pieces of large files.
        Refers to the number of data rows in the returned DataFrame, excluding:

        * The header row containing column names.
        * Rows before the header row, if ``header=1`` or larger.

        Example usage:

        * To read the first 999,999 (non-header) rows:
          ``read_csv(..., nrows=999999)``

        * To read rows 1,000,000 through 1,999,999:
          ``read_csv(..., skiprows=1000000, nrows=999999)``

    na_values : Hashable, Iterable of Hashable or dict of {{Hashable : Iterable}},
        optional
        Additional strings to recognize as ``NA``/``NaN``.
        If ``dict`` passed, specific
        per-column ``NA`` values.  By default the following values are interpreted as
        ``NaN``: empty string, "NaN", "N/A", "NULL", and other
        common representations of missing data.
    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 ``NA`` values, passing ``na_filter=False`` can improve the
        performance of reading a large file.
    skip_blank_lines : bool, default True
        If ``True``, skip over blank lines rather than interpreting as ``NaN`` values.
    parse_dates : bool, None, list of Hashable, default None
        The behavior is as follows:

        * ``bool``. If ``True`` -> try parsing the index.
        * ``None``. Behaves like ``True`` if ``date_format`` is specified.
        * ``list`` of ``int`` or names.
          e.g. If ``[1, 2, 3]`` -> try parsing columns 1, 2, 3
          each as a separate date column.

        If a column or index cannot be represented as an array of ``datetime``,
        say because of an unparsable value or a mixture of timezones, the column
        or index will be returned unaltered as an ``object`` data type. For
        non-standard ``datetime`` parsing, use :func:`~pandas.to_datetime` after
        :func:`~pandas.read_csv`.

        Note: A fast-path exists for iso8601-formatted dates.
    date_format : str or dict of column -> format, optional
        Format to use for parsing dates and/or times when used
        in conjunction with ``parse_dates``.
        The strftime to parse time, e.g. :const:`"%d/%m/%Y"`. See
        `strftime documentation
        <https://docs.python.org/3/library/datetime.html
        #strftime-and-strptime-behavior>`_ for more information on choices, though
        note that :const:`"%f"`` will parse all the way up to nanoseconds.
        You can also pass:

        - "ISO8601", to parse any `ISO8601 <https://en.wikipedia.org/wiki/ISO_8601>`_
          time string (not necessarily in exactly the same format);
        - "mixed", to infer the format for each element individually. This is risky,
          and you should probably use it along with `dayfirst`.

        .. versionadded:: 2.0.0
    dayfirst : bool, default False
        DD/MM format dates, international and European format.
    cache_dates : bool, default True
        If ``True``, use a cache of unique, converted dates to apply the ``datetime``
        conversion. May produce significant speed-up when parsing duplicate
        date strings, especially ones with timezone offsets.

    iterator : bool, default False
        Return ``TextFileReader`` object for iteration or getting chunks with
        ``get_chunk()``.
    chunksize : int, optional
        Number of lines to read from the file per chunk. Passing a value will cause the
        function to return a ``TextFileReader`` object for iteration.
        See the `IO Tools docs
        <https://pandas.pydata.org/pandas-docs/stable/io.html#io-chunking>`_
        for more information on ``iterator`` and ``chunksize``.

    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).
        If using 'zip' or 'tar', the ZIP file must contain
        only one data file to be read in.
        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.ZstdDecompressor``, ``lzma.LZMAFile`` or
        ``tarfile.TarFile``, respectively.
        As an example, the following could be passed for
        Zstandard decompression using a
        custom compression dictionary:
        ``compression={'method': 'zstd', 'dict_data': my_compression_dict}``.

    thousands : str (length 1), optional
        Character acting as the thousands separator in numerical values.
    decimal : str (length 1), default '.'
        Character to recognize as decimal point (e.g., use ',' for European data).
    lineterminator : str (length 1), optional
        Character used to denote a line break. Only valid with C parser.
    quotechar : str (length 1), optional
        Character used to denote the start and end of a quoted item. Quoted
        items can include the ``delimiter`` and it will be ignored.
    quoting : {{0 or csv.QUOTE_MINIMAL, 1 or csv.QUOTE_ALL, 2 or
        csv.QUOTE_NONNUMERIC, 3 or csv.QUOTE_NONE}}, default csv.QUOTE_MINIMAL
        Control field quoting behavior per ``csv.QUOTE_*`` constants. Default is
        ``csv.QUOTE_MINIMAL`` (i.e., 0) which
        implies that only fields containing special
        characters are quoted (e.g., characters defined
        in ``quotechar``, ``delimiter``,
        or ``lineterminator``.
    doublequote : bool, default True
       When ``quotechar`` is specified and ``quoting`` is not ``QUOTE_NONE``, indicate
       whether or not to interpret two consecutive ``quotechar`` elements INSIDE a
       field as a single ``quotechar`` element.
    escapechar : str (length 1), optional
        Character used to escape other characters.
    comment : str (length 1), optional
        Character indicating that the remainder of line should not be parsed.
        If found at the beginning
        of a line, the line will be ignored altogether. This parameter must be a
        single character. Like empty lines (as long as ``skip_blank_lines=True``),
        fully commented lines are ignored by the parameter ``header`` but not by
        ``skiprows``. For example, if ``comment='#'``, parsing
        ``#empty\na,b,c\n1,2,3`` with ``header=0`` will result in ``'a,b,c'`` being
        treated as the header.
    encoding : str, optional, default 'utf-8'
        Encoding to use for UTF when reading/writing (ex. ``'utf-8'``). `List of Python
        standard encodings
        <https://docs.python.org/3/library/codecs.html#standard-encodings>`_ .

    encoding_errors : str, optional, default 'strict'
        How encoding errors are treated. `List of possible values
        <https://docs.python.org/3/library/codecs.html#error-handlers>`_ .

    dialect : str or csv.Dialect, optional
        If provided, this parameter will override values (default or not) for the
        following parameters: ``delimiter``, ``doublequote``, ``escapechar``,
        ``skipinitialspace``, ``quotechar``, and ``quoting``. If it is necessary to
        override values, a ``ParserWarning`` will be issued. See ``csv.Dialect``
        documentation for more details.
    on_bad_lines : {{'error', 'warn', 'skip'}} or Callable, default 'error'
        Specifies what to do upon encountering a bad
        line (a line with too many fields).
        Allowed values are:

        - ``'error'``, raise an Exception when a bad line is encountered.
        - ``'warn'``, raise a warning when a bad line is encountered and
          skip that line.
        - ``'skip'``, skip bad lines without raising or warning when they
          are encountered.
        - Callable, function that will process a single bad line.
            - With ``engine='python'``, function with signature
              ``(bad_line: list[str]) -> list[str] | None``.
              ``bad_line`` is a list of strings split by the ``sep``.
              If the function returns ``None``, the bad line will be ignored.
              If the function returns a new ``list`` of strings with more elements than
              expected, a ``ParserWarning`` will be emitted while
              dropping extra elements.
            - With ``engine='pyarrow'``, function with signature
              as described in pyarrow documentation: `invalid_row_handler
              <https://arrow.apache.org/docs/
              python/generated/pyarrow.csv.ParseOptions.html
              #pyarrow.csv.ParseOptions.invalid_row_handler>`_.

        .. versionadded:: 2.2.0

            Callable for ``engine='pyarrow'``

    low_memory : bool, default True
        Internally process the file in chunks, resulting in lower memory use
        while parsing, but possibly mixed type inference.  To ensure no mixed
        types either set ``False``, or specify the type with the ``dtype`` parameter.
        Note that the entire file is read into a single :class:`~pandas.DataFrame`
        regardless, use the ``chunksize`` or ``iterator`` parameter
        to return the data in
        chunks. (Only valid with C parser).
    memory_map : bool, default False
        If a filepath is provided for ``filepath_or_buffer``, map the file object
        directly onto memory and access the data directly from there. Using this
        option can improve performance because there is no longer any I/O overhead.
    float_precision : {{'high', 'legacy', 'round_trip'}}, optional
        Specifies which converter the C engine should use for floating-point
        values. The options are ``None`` or ``'high'`` for the ordinary converter,
        ``'legacy'`` for the original lower precision pandas converter, and
        ``'round_trip'`` for the round-trip converter.

    storage_options : dict, optional
        Extra options that make sense for a particular storage connection, e.g.
        host, port, username, password, etc. For HTTP(S) URLs the key-value pairs
        are forwarded to ``urllib.request.Request`` as header options. For other
        URLs (e.g. starting with "s3://", and "gcs://") the key-value pairs are
        forwarded to ``fsspec.open``. Please see ``fsspec`` and ``urllib`` for more
        details, and for more examples on storage options refer `here
        <https://pandas.pydata.org/docs/user_guide/io.html?
        highlight=storage_options#reading-writing-remote-files>`_.

    dtype_backend : {{'numpy_nullable', 'pyarrow'}}
        Back-end data type applied to the resultant :class:`DataFrame`
        (still experimental). If not specified, the default behavior
        is to not use nullable data types. If specified, the behavior
        is as follows:

        * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
        * ``"pyarrow"``: returns pyarrow-backed nullable
          :class:`ArrowDtype` :class:`DataFrame`

        .. versionadded:: 2.0

    Returns
    -------
    DataFrame or TextFileReader
        A comma-separated values (csv) file is returned as two-dimensional
        data structure with labeled axes.

    See Also
    --------
    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.

    Examples
    --------
    >>> pd.read_table("data.csv")  # doctest: +SKIP
       Name  Value
    0   foo      1
    1   bar      2
    2  #baz      3

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

    >>> pd.read_table("data.csv", header=None)  # doctest: +SKIP
          0      1
    0  Name  Value
    1   foo      1
    2   bar      2
    3  #baz      3

    >>> pd.read_table("data.csv", index_col="Value")  # doctest: +SKIP
           Name
    Value
    1       foo
    2       bar
    3      #baz

    Column types are inferred but can be explicitly specified using the dtype argument.

    >>> pd.read_table("data.csv", dtype={{"Value": float}})  # doctest: +SKIP
       Name  Value
    0   foo    1.0
    1   bar    2.0
    2  #baz    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_table("data.csv", na_values=["foo", "bar"])  # doctest: +SKIP
       Name  Value
    0   NaN      1
    1   NaN      2
    2  #baz      3

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

    >>> pd.read_table("data.csv", comment="#")  # doctest: +SKIP
      Name  Value
    0  foo      1
    1  bar      2

    By default, columns with dates will be read as ``object`` rather than  ``datetime``.

    >>> df = pd.read_table("tmp.csv")  # doctest: +SKIP

    >>> df  # doctest: +SKIP
       col 1       col 2            col 3
    0     10  10/04/2018  Sun 15 Jan 2023
    1     20  15/04/2018  Fri 12 May 2023

    >>> df.dtypes  # doctest: +SKIP
    col 1     int64
    col 2    object
    col 3    object
    dtype: object

    Specific columns can be parsed as dates by using the `parse_dates` and
    `date_format` arguments.

    >>> df = pd.read_table(
    ...     "tmp.csv",
    ...     parse_dates=[1, 2],
    ...     date_format={{"col 2": "%d/%m/%Y", "col 3": "%a %d %b %Y"}},
    ... )  # doctest: +SKIP

    >>> df.dtypes  # doctest: +SKIP
    col 1             int64
    col 2    datetime64[ns]
    col 3    datetime64[ns]
    dtype: object
    r   r=   r>   	r   r   r   s.                                                 r   r   r     s|    p 88==??D!"U)t$#	 	 	M 	KK#T***r   )r   r   r   r   r   &Sequence[tuple[int, int]] | str | Noner   Sequence[int] | Noner   c                   d S r   r   r   r   r   r   r   r   r   s          r   read_fwfr     	     Sr   )r   r   r   r   c                   d S r   r   r   s          r   r   r     r   r   )r   r   r   r   r   c                   d S r   r   r   s          r   r   r     s	     r   c          
         ||t          d          |dvr|t          d          |(g d}}|D ]!}|                    |||z   f           ||z  }"|J |                    d          }	|	|	t          j        urt          |	          t          |          k    r|dk    rd}
|                    d          J|                    d          }|d	ur1t          |          sd
}
n|t          j        usJ t          |          }
|                    d          2t          |	          |
z   t          |          k    rt          d          t          |                    dt          j                             t          | |||d||dz            S )ap  
    Read a table of fixed-width formatted lines into DataFrame.

    Also supports optionally iterating or breaking of the file
    into chunks.

    Additional help can be found in the `online docs for IO Tools
    <https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html>`_.

    Parameters
    ----------
    filepath_or_buffer : str, path object, or file-like object
        String, path object (implementing ``os.PathLike[str]``), or file-like
        object implementing a text ``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.csv``.
    colspecs : list of tuple (int, int) or 'infer'. optional
        A list of tuples giving the extents of the fixed-width
        fields of each line as half-open intervals (i.e.,  [from, to] ).
        String value 'infer' can be used to instruct the parser to try
        detecting the column specifications from the first 100 rows of
        the data which are not being skipped via skiprows (default='infer').
    widths : list of int, optional
        A list of field widths which can be used instead of 'colspecs' if
        the intervals are contiguous.
    infer_nrows : int, default 100
        The number of rows to consider when letting the parser determine the
        `colspecs`.
    iterator : bool, default False
        Return ``TextFileReader`` object for iteration or getting chunks with
        ``get_chunk()``.
    chunksize : int, optional
        Number of lines to read from the file per chunk.
    **kwds : optional
        Optional keyword arguments can be passed to ``TextFileReader``.

    Returns
    -------
    DataFrame or TextFileReader
        A comma-separated values (csv) file is returned as two-dimensional
        data structure with labeled axes.

    See Also
    --------
    DataFrame.to_csv : Write DataFrame to a comma-separated values (csv) file.
    read_csv : Read a comma-separated values (csv) file into DataFrame.

    Examples
    --------
    >>> pd.read_fwf("data.csv")  # doctest: +SKIP
    Nz&Must specify either colspecs or widths)Nr   z4You must specify only one of 'widths' and 'colspecs'r   rB   r   rD   Fr   rE   z-Length of colspecs must match length of namesry   
python-fwf)r   r   rI   r   r   )
r   appendr   r   
no_defaultr   r   r   
setdefaultr   )r   r   r   r   r   r   r   colwrB   	len_indexrD   s               r   r   r     s   @ FNABBB&&6+=OPPP A# 	 	AOOS#'N+++1HCC  HHWEU#.88u::X&&8w+>+> Ixx$$0!%+!6!6	E))'	22 3$%		  )>>>>$'	NN	xx	""*s5zzI/EX/V/V !PQQQHHIII &" "
 
	

 
 
r   c                  ~    e Zd ZdZ	 d'd(d	Zd)d
Zd*dZd+dZd,dZd-dZ		 d.d/dZ
d)dZd'd0dZd'd1dZd2dZd3d&ZdS )4r   zF

    Passed dialect overrides any of the related parser options

    Nf;FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | listrI   rH   r   r   c                   |d}nd}d}|| _         |                    d|          | _        t          |           t	          |          }|%|dk    rt          d          t          ||          }|                    dd          dk    r|                    d	          d
nd |d<   || _        d
| _        | 	                    |          }|                    dd           |d<   |
                    dd           | _        |
                    dd           | _        |                     ||           |                     ||          \  | _        | _         d|v r|d         | j        d<   d | _        |                     || j                   | _        d S )NTpythonFengine_specifiedr   z?The 'dialect' option is not supported with the 'pyarrow' enginer@   r   rB   r   rw   r   rV   has_index_names)rI   r   _engine_specified_validate_skipfooter_extract_dialectr   _merge_with_dialect_propertiesorig_options_currow_get_options_with_defaultspopr   rV   _check_file_or_buffer_clean_optionsoptionshandles_make_engine_engine)selfr   rI   r   r   rp   r   s          r   __init__zTextFileReader.__init__@  s    #F$!%*<>N!O!OT""""4(("" U   2'4@@D88Hg&&'11"&((7"3"3";QQDN  11&99%)XX.?%F%F!" [$77[[$//
""1f---$($7$7$H$H!dk$$.23D.EDL*+)-((DK88r   c                x    | j         | j                                          | j                                         d S r   )r   closer  r  s    r   r  zTextFileReader.closeo  s8    <#L   r   r1   dict[str, Any]c                X   | j         }i }t          j                    D ]]\  }}|                    ||          }|dk    r7|t          v r.||k    r(|t          |d|          k    rt          d|d          |||<   ^t                                          D ]W\  }}||v rG||         }|dk    r8||k    r2d|v r
|t          vrn'd|v r
|t          vrnt          d|d|d          n|}|||<   X|d	k    r8t                                          D ]\  }}|                    ||          ||<   |S )
Nr   valuezThe z2 option is not supported with the 'pyarrow' enginecr   z" option is not supported with the z enginer   )
r   r&   itemsr   _pyarrow_unsupportedgetattrr   r   _python_unsupportedr   )r  rI   r   r   argnamedefaultr	  s          r   r   z)TextFileReader._get_options_with_defaultst  s     !0 5 7 7 	% 	%GWHHWg..E )##333W$$WUGW==== X7XXX    %GG 2 8 8 : : 	% 	%GW$WS==Ug%5%56))g=P.P.P"f,,@T1T1T(17 1 1%1 1 1  
  $GG\!!$1$7$7$9$9 > > #'88GW#=#=  r   c           	     N   t          |          r%|dk    rt          |d          st          d          t          |d          r\|j        }| j                            dd           }|d u p|d u }||k    r.|s.t          |dd           }t          d| d| d| d	          d S d S d S )
Nr
  __iter__z<The 'python' engine cannot iterate through this file buffer.rm   r   zThe specified reader encoding z  is different from the encoding z	 of file r   )r   hasattrr   rm   r   r   r  )r  r   rI   file_encodingorig_reader_encany_none	file_paths          r   r   z$TextFileReader._check_file_or_buffer  s   ?? 	v}}WQ
5K5K}
 N   1j!! 		JM"/33JEEO$,G40GH///#Avt44	 N_ N N)6N NAJN N N  		 		 0///r   r    tuple[dict[str, Any], CSVEngine]c                   |                                 }d }|dk    r|d         dk    rd}d}|d         }|5t          |          dk    r"|dk    r|dk    r	d	|d
<   |d= ns|dvrd| d}d}nf|dd	}t          j                    pd}	 t          |                    |                    dk    rd}n# t
          $ r d}Y nw xY w|s|dvrd| d| d}d}|d         }|Nt          |t          t          f          r2t          |          dk    rt          |          dk    r|dvrd| d}d}|r| j
        rt          |          |dk    rt          D ]}	||	= d|v rIt          D ]A}	|r:||	         t                              |	          k    rt          d| d|	d          ||	= B|r,t!          j        d| dt$          t'                                 |d         }
|d         }|d         }|d         }|d          }t)          |d!                    |
d	u rt          d"          t+          |
          r*t          |
t,          t.          t0          j        f          s|
g}
|
|d<   |t-          |          n|}|:t          |t4                    s$t7          d#t9          |          j                   ni }|d$         }|d%k    }t=          |||&          \  }}|d%k    r!t?          |          s|t          d'          nMt?          |          rtA          |          }|tC                      }ntE          |          stC          |          }||d<   ||d<   ||d<   ||d(<   ||d <   ||fS ))Nr
  rT   r   z*the 'c' engine does not support skipfooterr   r>   r   z\s+Tdelim_whitespace)r   r   zthe 'zr' engine does not support regex separators (separators > 1 char and different from '\s+' are interpreted as regex)utf-8Fzthe separator encoded in z is > 1 char long, and the 'z)' engine does not support such separatorsrh      zNord(quotechar) > 127, meaning the quotechar is larger than one byte, and the 'z)' engine does not support such quotecharsz,Falling back to the 'python' engine because z, but this causes z= to be ignored as it is not supported by the 'python' engine.z;; you can avoid this warning by specifying engine='python'.
stacklevelrD   rB   rK   rX   rR   r@   z)The value of index_col couldn't be 'True'z8Type converters must be a dict or subclass, input was a rY   r   )floatifyz@skiprows argument must be an integer when using engine='pyarrow'
na_fvalues)#r   r   sysgetfilesystemencodingencodeUnicodeDecodeErrorr   re   bytesordr   r   _c_unsupportedr  r   r   warningswarnr   r   r"   r%   listtuplenpndarraydict	TypeErrorr   r{   _clean_na_valuesr   ranger   callable)r  r   rI   resultfallback_reasonr=   
encodeablerm   rh   argrD   rB   rK   rX   rR   rY   r  r   s                     r   r   zTextFileReader._clean_options  s     S==|$q(("N!k"?s3xx!||}}-1)*;''777FF F F F  
 "_J022=gH#szz(++,,q00!&J% # # #"


# "&0H"H"H7 7 7287 7 7  
 "K(	 Z	C<%H%H I!##	NNS((":::R &R R R  
 " 	.t5 	._---S==%    3KKv*    " vc{6H6L6LS6Q6Q'Q'Q$Q*Q Q>AQ Q Q  
 3KK 		M'&' ' ' +--    K(	 \*
K(	:&GH-...HIII	"" 	(i$rz)BCC (&K	'{$0Ue !j$// ?#'
#3#3#<? ?   J ""34Y& 0!
 !
 !
	: Yh'' H,@ V   (## + ??55h'' )x==  w)|'{)|%zv~s   (B/ /B>=B>r   c                r    	 |                                  S # t          $ r |                                   w xY wr   )	get_chunkStopIterationr  r  s    r   __next__zTextFileReader.__next__H  sB    	>>### 	 	 	JJLLL	s     6r
  @FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | list | IOr$   c                   t           t          t          t          d}||vr(t	          d| d|                                 d          t          |t                    sd}d}|dk    rd}d	}nR|d
k    rL| j        	                    dd          dk    r-t          t          |          t                    rd}d|vr|dz  }t          ||| j        	                    dd           | j        	                    dd           | j        	                    dd          || j        	                    dd          | j        	                    dd                     | _        | j        J | j        j        }n'|dk    r!dt          |           }t	          |          	  ||         |fi | j        S # t           $ r" | j        | j                                          w xY w)N)r
  r   r   r   zUnknown engine: z (valid options are )Trr   Frbr
  rm   r  brb   rs   rn   r   rw   )rm   rb   rs   is_textr   rw   r   z)Invalid file path or buffer object type: )r'   r)   r#   r(   r   keysr   r*  r   r   r!   re   r    r   handler   	Exceptionr  )r  r   rI   mappingrA  moder   s          r   r   zTextFileReader._make_engineO  s     ")/	0
 0
   P6PPw||~~PPP   !T""  	"GD""#L$$Z99WDD~a00#66 E
  d??CKD%))*d;; L,,]DAA<++L%@@|''(98DD $ 0 01BD I I	 	 	DL <+++#AAxGd1ggGGCS//!	"76?155555 	 	 	|'""$$$	s   F* *,Gc                     t          |           r   )r   r  s    r   _failover_to_pythonz"TextFileReader._failover_to_python  s    !$'''r   rV   rU   c                   | j         dk    r?	 | j                                        }n# t          $ r |                                   w xY wt          d|          }	 | j                            |          \  }}}n## t          $ r |                                   w xY w|^|rYt          t          t          |	                                                              }t          | j        | j        |z             }nd}nt          |          }t          | d          r| j                            dd           nd t          t                     r&t#          d           }|                               n>:t'                    t(          j        t(          j        fv rt#          fd          }nd }|ji }|                                D ]R\  }	}
t'          ||	                   t(          j        t(          j        fv r||	         nd }t1          |
||d	          ||	<   Sn|}t3          |||d
          }| xj        |z  c_        |S )Nr   rV   r   r   rG   c                     d S r   r   r   r   r   <lambda>z%TextFileReader.read.<locals>.<lambda>  s    D r   c                      S r   r   )	dtype_args   r   rK  z%TextFileReader.read.<locals>.<lambda>  s    I r   F)indexrG   r   )columnsrN  r   )rI   r  r   rD  r  r   r   nextitervaluesr   r   r  r   r   r   r.  r   r   r   r,  str_object_r  r   r   )r  rV   dfrN  rO  col_dictnew_rowsrG   new_col_dictkvr   rM  s               @r   r   zTextFileReader.read  s   ;)##\&&((   

 %We44E L%% 	H    

 } !"4X__->->(?(?#@#@AAH&t|T\H5LMMEE HHu::t^,, ! -11'4@@		 	)T** 	#LL11Y''''&<	+B+B
G , , $$5$5$5$566 !$NN,, R RDAq (a11bgrz5JJJ a! 
 '-Qe15&Q&Q&QLOOR  (	  B LLH$LL	s   )  A	A< < Bsizec                    || j         }| j        F| j        | j        k    rt          || j        | j        z
  }nt	          || j        | j        z
            }|                     |          S )N)rV   )r   rV   r   r9  minr   )r  r[  s     r   r8  zTextFileReader.get_chunk  sl    <>D:!|tz))##|zDL04dl!:;;yyty$$$r   r   c                    | S r   r   r  s    r   	__enter__zTextFileReader.__enter__  s    r   exc_typetype[BaseException] | None	exc_valueBaseException | None	tracebackTracebackType | Nonec                .    |                                   d S r   )r  )r  r`  rb  rd  s       r   __exit__zTextFileReader.__exit__  s     	

r   r   )r   r   rI   rH   r   r   )r   r   )rI   r1   r   r  )rI   r1   r   r   )r   r  rI   r1   r   r  )r   r   )r
  )r   r;  rI   r1   r   r$   )rV   rU   r   r   )r[  rU   r   r   )r   r   )r`  ra  rb  rc  rd  re  r   r   )r{   r|   r}   __doc__r  r  r   r   r   r:  r   rH  r   r8  r_  rg  r   r   r   r   r   9  s:         $(-9 -9 -9 -9 -9^   
, , , ,\   *O O O Ob     7 7 7 7 7r( ( ( (E E E E EN
% 
% 
% 
% 
%        r   c                 $    d|d<   t          | i |S )a  
    Converts lists of lists/tuples into DataFrames with proper type inference
    and optional (e.g. string to datetime) conversion. Also enables iterating
    lazily over chunks of large files

    Parameters
    ----------
    data : file-like object or list
    delimiter : separator character to use
    dialect : str or csv.Dialect instance, optional
        Ignored if delimiter is longer than 1 character
    names : sequence, default
    header : int, default 0
        Row to use to parse column labels. Defaults to the first row. Prior
        rows will be discarded
    index_col : int or list, optional
        Column or columns to use as the (possibly hierarchical) index
    has_index_names: bool, default False
        True if the cols defined in index_col have an index name and are
        not in the header.
    na_values : scalar, str, list-like, or dict, optional
        Additional strings to recognize as NA/NaN.
    keep_default_na : bool, default True
    thousands : str, optional
        Thousands separator
    comment : str, optional
        Comment out remainder of line
    parse_dates : bool, default False
    date_format : str or dict of column -> format, default ``None``

        .. versionadded:: 2.0.0
    skiprows : list of integers
        Row numbers to skip
    skipfooter : int
        Number of line at bottom of file to skip
    converters : dict, optional
        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 cell (not column) content, and return the
        transformed content.
    encoding : str, optional
        Encoding to use for UTF when reading/writing (ex. 'utf-8')
    float_precision : str, optional
        Specifies which converter the C engine should use for floating-point
        values. The options are `None` or `high` for the ordinary converter,
        `legacy` for the original lower precision pandas converter, and
        `round_trip` for the round-trip converter.
    r   rI   )r   )argsr   s     r   
TextParserrk    s!    b DN4(4(((r   r  c                   | '|rt           } nt                      } t                      }nt          | t                    r|                                 }i } |                                D ]C\  }}t          |          s|g}|rt          |          t           z  }t          ||          | |<   Dd |                                 D             }n=t          |           s| g} t          | |          } |r
| t           z  } t          |           }| |fS )Nc                4    i | ]\  }}|t          |          S r   )_floatify_na_values).0rY  rZ  s      r   
<dictcomp>z$_clean_na_values.<locals>.<dictcomp>7  s'    NNNDAqa,Q//NNNr   )	r   r   r   r.  r   r  r   _stringify_na_valuesrn  )rX   rY   r  r   old_na_valuesrY  rZ  s          r   r0  r0    s#    	%IIIUU

	It	$	$ 4!((	 "'')) 	= 	=DAq?? C +FF]*/8<<IaLLNNIOO<M<MNNN

I&& 	$"I(H==	 	2!M1I(33
j  r   
set[float]c                    t                      }| D ]X}	 t          |          }t          j        |          s|                    |           <# t
          t          t          f$ r Y Uw xY w|S r   )r   r   r,  isnanaddr/  r   OverflowError)rX   r3  rZ  s      r   rn  rn  D  sv    UUF  	aA8A;; 

1:}5 	 	 	D	Ms   8AA'&A'set[str | float]c                l   g }| D ] }|                     t          |                     |                     |           	 t          |          }|t          |          k    rIt          |          }|                     | d           |                     t          |                     |r|                     |           n# t          t
          t          f$ r Y nw xY w|rC	 |                     t          |                     # t          t
          t          f$ r Y w xY w"t          |          S )z1return a stringified and numeric for these valuesz.0)r   re   r   rS   r/  r   rw  r   )rX   r  r3  xrZ  s        r   rq  rq  Q  s@    "F  c!ffa	aA CFF{{FFhhh'''c!ff%%% !a   :}5 	 	 	D	 	c!ff%%%%z=9   	
 v;;s%    BCCC#"DD"!D"str | Callabler   r  c                   |d         }i }	| |du o|t           j        u p||k    |	d<   |r|t           j        urt          d          |t           j        u rdn||	d<   ||}|dk    rt          d          |t           j        u r||	d<   n||	d<   |d|	d	<   n
d
|	d<   d|	d	<   |dk    rt          j        j        |	d<   nq|dk    rt          j        j        |	d<   nV|dk    rt          j        j        |	d<   n;t          |          r|dvrt          d          ||	d<   nt          d| d          t          |           ||	d<   |	S )a$  Validate/refine default values of input parameters of read_csv, read_table.

    Parameters
    ----------
    dialect : str or csv.Dialect
        If provided, this parameter will override values (default or not) for the
        following parameters: `delimiter`, `doublequote`, `escapechar`,
        `skipinitialspace`, `quotechar`, and `quoting`. If it is necessary to
        override values, a ParserWarning will be issued. See csv.Dialect
        documentation for more details.
    delimiter : str or object
        Alias for sep.
    engine : {{'c', 'python'}}
        Parser engine to use. The C engine is faster while the python engine is
        currently more feature-complete.
    sep : str or object
        A delimiter provided by the user (str) or a sentinel value, i.e.
        pandas._libs.lib.no_default.
    on_bad_lines : str, callable
        An option for handling bad lines or a sentinel value(None).
    names : array-like, optional
        List of column names to use. If the file contains a header row,
        then you should explicitly pass ``header=0`` to override the column names.
        Duplicates in this list are not allowed.
    defaults: dict
        Default values of input parameters.

    Returns
    -------
    kwds : dict
        Input parameters with correct values.
    r>   Nsep_overridez:Specified a sep and a delimiter; you can only specify one.rB   
zSpecified \n as separator or delimiter. This forces the python engine which does not accept a line terminator. Hence it is not allowed to use the line terminator as separator.Tr   r
  rI   Fr   rq   r)  skip)r   r   zKon_bad_line can only be a callable function if engine='python' or 'pyarrow'z	Argument z is invalid for on_bad_linesry   )
r   r   r   r$   BadLineHandleMethodERRORWARNSKIPr2  r   )
rp   r>   rI   r=   rq   rB   r   ry   delim_defaultr   s
             r   r   r   l  s   V [)MD (D0  
3>!9SM%9 	^  Wc//UVVV!S^33DDDM 	D0
 
 	
 CN"")[%[#'  X#( w)=C^			)=B^			)=B^	,		 Q...2    ,^O\OOOPPP&&&)DKr   dict[str, str | csv.Dialect]csv.Dialect | Nonec                b   |                      d          dS | d         }t          |t                    rQ|t          j                    v r<t          t          j        t          j        |                    }t          |           n)t          |           t          t          j        |          }|S )za
    Extract concrete csv dialect instance.

    Returns
    -------
    csv.Dialect or None
    rp   N)	r   r   re   csvlist_dialectsr   Dialectget_dialect_validate_dialect)r   rp   tdialects      r   r   r     s     xx	"t9oG'3 .Gs/@/B/B$B$BS_W%=%=>>(#### 	'"""W--Or   )r>   rj   rk   rP   rh   ri   csv.Dialect | strc                `    t           D ]%}t          | |          st          d|  d          &dS )zx
    Validate csv dialect instance.

    Raises
    ------
    ValueError
        If incorrect dialect is provided.
    zInvalid dialect z	 providedN)MANDATORY_DIALECT_ATTRSr  r   )rp   params     r   r  r    sT     ) D Dw&& 	DBBBBCCC	DD Dr   csv.Dialectc                   |                                 }t          D ]}t          | |          }t          |         }|                    ||          }g }|||fvr=d| d| d| d}|dk    r|                    dd          s|                    |           |r;t          j        d	                    |          t          t                      	           |||<   |S )
a  
    Merge default kwargs in TextFileReader with dialect parameters.

    Parameters
    ----------
    dialect : csv.Dialect
        Concrete csv dialect. See csv.Dialect documentation for more details.
    defaults : dict
        Keyword arguments passed to TextFileReader.

    Returns
    -------
    kwds : dict
        Updated keyword arguments, merged with dialect parameters.
    zConflicting values for 'z': 'z+' was provided, but the dialect specifies 'z%'. Using the dialect-specified value.r>   r}  Fz

r  )r   r  r  r&   r   r   r   r(  r)  joinr   r   )	rp   r   r   r  dialect_valparser_defaultprovidedconflict_msgsr   s	            r   r   r   	  s   & ==??D( " "gu--(/88E>22  NK88855 5 5h 5 58C5 5 5  [((TXXne-L-L($$S))) 	MM**MFVFXFX    "UKr   c                    |                      d          r]|                      d          s|                      d          rt          d          |                      d          rt          d          dS dS )a  
    Check whether skipfooter is compatible with other kwargs in TextFileReader.

    Parameters
    ----------
    kwds : dict
        Keyword arguments passed to TextFileReader.

    Raises
    ------
    ValueError
        If skipfooter is not compatible with other parameters.
    rT   r   r   z('skipfooter' not supported for iterationrV   z''skipfooter' not supported with 'nrows'N)r   r   )r   s    r   r   r   C	  s     xx H88J 	I488K#8#8 	IGHHH88G 	HFGGG	H H	H 	Hr   ).)r   re   r   r   r   rS   r   r   )r   re   r   r   r   rS   r   rS   )r   re   r   rU   r   rS   r   rU   )r   )r   re   r   r   r   rS   r   rU   )rB   r   r   r   )r   r   r   r   )
r   r   r   r   r   rU   r   r   r   r   )
r   r   r   rO   r   rS   r   r   r   r   )
r   r   r   r   r   r   r   r   r   r   )
r   r   r   rO   r   rU   r   r   r   r   )Zr   r   r=   r<   r>   r<   r@   r?   rB   rA   rD   rC   rE   r9   rG   rF   rI   rH   rK   rJ   rM   rL   rN   rL   rP   rO   rR   rQ   rT   rS   rV   rU   rX   rW   rY   rO   rZ   rO   r[   rO   r]   r\   r_   r^   r`   rO   ra   rO   r   rO   r   rU   rb   r0   rd   rc   rf   re   rg   rc   rh   re   ri   rS   rj   rO   rk   rc   rl   rc   rm   rc   rn   rc   rp   ro   rq   re   rr   rO   rs   rO   ru   rt   rw   rv   ry   rx   r   r   )r   r   r   r   r   r   r   rS   r   r   r   rU   r   r   r   r   )r   r   r   r   r   r   r   rS   r   rO   r   rS   r   r   r   r   )r   r   r   r   r   r   r   rS   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   rS   r   rO   r   rU   r   r   r   r   )r   r   )TT)rY   rO   r  rO   )r   rs  )r  rO   r   rx  )rp   ro   r>   r<   rI   rH   r=   r<   rq   r{  rB   rA   r   r  ry   rx   )r   r  r   r  )rp   r  r   r   )rp   r  r   r  r   r  )r   r  r   r   )prh  
__future__r   collectionsr   r   r  r!  typingr   r   r   r	   r
   r   r   r   r   r   r(  numpyr,  pandas._libsr   pandas._libs.parsersr   pandas.errorsr   r   pandas.util._decoratorsr   pandas.util._exceptionsr   pandas.util._validatorsr   pandas.core.dtypes.commonr   r   r   r   r   r   r   pandas.core.framer   pandas.core.indexes.apir   pandas.io.commonr   r    r!   r"   &pandas.io.parsers.arrow_parser_wrapperr#   pandas.io.parsers.base_parserr$   r%   r&   "pandas.io.parsers.c_parser_wrapperr'   pandas.io.parsers.python_parserr(   r)   collections.abcr*   r+   r,   r-   r.   typesr/   pandas._typingr0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r;   r.  r   r   r~   r   r   r'  r  r  r   r   r   r   r   QUOTE_MINIMALr   r   Iteratorr   rk  r0  rn  rq  r   r   r  r  r   r   r   r   r   <module>r     ss
     # " " " " "        


 



                                   . . . . . .             5 4 4 4 4 4 7 7 7 7 7 7                    ' ' ' ' ' ' . . . . . .            F E E E E E         
 > = = = = =       
  G              $#####                       -4 -4 -4 -4 -4y')"4E -4 -4 -4 -4 -4` L        	* *         I    -4CSWXX X X X X#%67    & 
 K K K K 
 K 
 K K K K 
 K 
 W W W W 
 W 89    @G G G G00" 0" 0" 0"f 

  	     
 
      
 
  #	     
 
 	% % % % % 
% H '*n,0<C7:~48"!#6:# $"DH 	 !4848 &- !%$!"*(,),7FJ-125.oK+ K+ K+ K+ K+ K+\ 

  	     
 
      
 
  #	     
 
 	% % % % % 
% H '*n,0<C7:~48"!#6:# $"DH 	 !4848 &- !%$!"*(,),7FJ-125.oG+ G+ G+ G+ G+ G+T 
 8;#&	 	 	 	 	 
	 
 8;#&	 	 	 	 	 
	 
 8;#&"	 	 	 	 	 
	 H 8?#' o o o o o odn n n n nS\ n n nb2) 2) 2) 2)j"! "! "! "! "!J
 
 
 
   6n n n nb   0 D D D D3 3 3 3lH H H H H Hr   