a
    Pfx                  6   @   sz  d dl Z d dlmZ d dlmZ ddddifdeedfdd	d
fddi fddi fddi fddi fddi fddi fddi fddi fddi fddi fddddifddddifddddifddddifddi fddi fd di fd!d"i fd#d$i fd%d&i fd'di fd(di fd)di fd*d+i fd,di fd-d.ddifd-d.ddifd/d0i fd1d2i fd3di fd4d$i fd5di fd6d.ddifd6d.ddifd7d8i fd9d:i fd;d.ddifd;d.ddifd<di fd<di fd<di fd<di fd<di fd<dddifd<dddifd=di fd>di fd?d@dAifi fdBdCi fdDdi fg4eeg dEdgdA i gdA  Zee \ZZ	Z	dFdG e
eD ee Zer`J e jeedHdIdJ ZdS )K    N)Series)StringMethodscat sep,Zzyxleft)r   joincenter)
   containsacountdecode)zUTF-8encodeendswith)r   )r   ))r   b))r   MISSINGnaTFextract)z([a-z]*)expand
extractallfindfindallget)r   index) r	   )r   ljustmatch	fullmatch	normalize)NFCpad	partition) repeat)   replace)r   zrfindrindexrjust
rpartitionslice)r      slice_replace)r   r/   r)   split
startswithremoveprefixremovesuffix	translatea   d   wrap)   zfill)
capitalizer   Zget_dummiesisalnumisalpha	isdecimalisdigitislower	isnumericisspaceistitleisupperlenlowerlstripr$   r-   rsplitrstripr.   r0   r1   stripswapcasetitleuppercasefoldc                 C   s   h | ]}| d s|qS )_)r2   ).0fr   r   V/var/www/ai-form-bot/venv/lib/python3.9/site-packages/pandas/tests/strings/conftest.py	<setcomp>c       rS   )paramsidsc                 C   s   | j S )a  
    Fixture for all public methods of `StringMethods`

    This fixture returns a tuple of the method name and sample arguments
    necessary to call the method.

    Returns
    -------
    method_name : str
        The name of the method in `StringMethods`
    args : tuple
        Sample values for the positional arguments
    kwargs : dict
        Sample values for the keyword arguments

    Examples
    --------
    >>> def test_something(any_string_method):
    ...     s = Series(['a', 'b', np.nan, 'd'])
    ...
    ...     method_name, args, kwargs = any_string_method
    ...     method = getattr(s.str, method_name)
    ...     # will not raise
    ...     method(*args, **kwargs)
    )param)requestr   r   rR   any_string_methodi   s    rY   )ZpytestZpandasr   Zpandas.core.strings.accessorr   listzipZ_any_string_methodrV   rO   dirsetZmissing_methodsZfixturerY   r   r   r   rR   <module>   s   8\
