o
    5ci                     @  sn   d dl mZ d dlZd dlmZ d dlZd dlmZ d dlZ	d dl
mZ er,d dlmZ G dd dejZdS )	    )annotationsN)Callable)TYPE_CHECKING)Scalar)Seriesc                   @  s  e Zd ZdZdd ZejdddZejdd	d
ZejdddZ	ejdddZ
ejdddZej				ddddZejd d! Zejddejfdd%d&Zejddejfdd'd(Zejdd*d+Zejdd,d-Zejdd.d/Zejdd0d1Zejd2d3 Zejdd4d5Zejdd6d7Zejd8d9 Zejd:d; Zejd<d= Zejd>d? Zejdd@dAZejddBdCZejdDdE ZejdFdG Z ejddIdJZ!ejdKdL Z"ejdMdN Z#ejdOdP Z$ejdQdR Z%ejdSdT Z&ejdUdV Z'ejdWdX Z(ejdYdZ Z)ejd[d\ Z*ejd]d^ Z+ejd_d` Z,ejdadb Z-ejdcdd Z.ejdedf Z/ejdgdh Z0ejdidj Z1ejddkdlZ2ejddmdnZ3ejddodpZ4ejddtduZ5ejddwdxZ6ejddzd{Z7ejdd|d}Z8ejddddZ9dS )BaseStringArrayMethodsa  
    Base class for extension arrays implementing string methods.

    This is where our ExtensionArrays can override the implementation of
    Series.str.<method>. We don't expect this to work with
    3rd-party extension arrays.

    * User calls Series.str.<method>
    * pandas extracts the extension array from the Series
    * pandas calls ``extension_array._str_<method>(*args, **kwargs)``
    * pandas wraps the result, to return to the user.

    See :ref:`Series.str` for the docstring of each method.
    c                 C  s*   t |tr| j|j|j|jdS | |S )N)startstopstep)
isinstanceslice
_str_slicer   r	   r
   _str_get)selfkey r   N/var/www/html/gps/gps/lib/python3.10/site-packages/pandas/core/strings/base.py_str_getitem    s   

z#BaseStringArrayMethods._str_getitemr   c                 C     d S Nr   r   patflagsr   r   r   
_str_count&      z!BaseStringArrayMethods._str_countleft c                 C  r   r   r   )r   widthsidefillcharr   r   r   _str_pad*   r   zBaseStringArrayMethods._str_padTNc                 C  r   r   r   )r   r   caser   naregexr   r   r   _str_contains.   r   z$BaseStringArrayMethods._str_containsc                 C  r   r   r   r   r   r"   r   r   r   _str_startswith2   r   z&BaseStringArrayMethods._str_startswithc                 C  r   r   r   r%   r   r   r   _str_endswith6   r   z$BaseStringArrayMethods._str_endswithr   str | re.Patternreplstr | Callablenintr!   boolr   r#   c                 C  r   r   r   )r   r   r*   r,   r!   r   r#   r   r   r   _str_replace:   s   
z#BaseStringArrayMethods._str_replacec                 C  r   r   r   )r   repeatsr   r   r   _str_repeatF   r   z"BaseStringArrayMethods._str_repeatstrr"   r   c                 C  r   r   r   r   r   r!   r   r"   r   r   r   
_str_matchJ   s   z!BaseStringArrayMethods._str_matchc                 C  r   r   r   r3   r   r   r   _str_fullmatchP   s   z%BaseStringArrayMethods._str_fullmatchstrictc                 C  r   r   r   )r   encodingerrorsr   r   r   _str_encodeZ   r   z"BaseStringArrayMethods._str_encodec                 C  r   r   r   r   subr   endr   r   r   	_str_find^   r   z BaseStringArrayMethods._str_findc                 C  r   r   r   r:   r   r   r   
_str_rfindb   r   z!BaseStringArrayMethods._str_rfindc                 C  r   r   r   r   r   r   r   _str_findallf   r   z#BaseStringArrayMethods._str_findallc                 C  r   r   r   )r   ir   r   r   r   j   r   zBaseStringArrayMethods._str_getc                 C  r   r   r   r:   r   r   r   
_str_indexn   r   z!BaseStringArrayMethods._str_indexc                 C  r   r   r   r:   r   r   r   _str_rindexr   r   z"BaseStringArrayMethods._str_rindexc                 C  r   r   r   r   sepr   r   r   	_str_joinv   r   z BaseStringArrayMethods._str_joinc                 C  r   r   r   r   rD   expandr   r   r   _str_partitionz   r   z%BaseStringArrayMethods._str_partitionc                 C  r   r   r   rF   r   r   r   _str_rpartition~   r   z&BaseStringArrayMethods._str_rpartitionc                 C  r   r   r   r   r   r   r   _str_len   r   zBaseStringArrayMethods._str_lenc                 C  r   r   r   )r   r   r	   r
   r   r   r   r      r   z!BaseStringArrayMethods._str_slicec                 C  r   r   r   )r   r   r	   r*   r   r   r   _str_slice_replace   r   z)BaseStringArrayMethods._str_slice_replacec                 C  r   r   r   )r   tabler   r   r   _str_translate   r   z%BaseStringArrayMethods._str_translatec                 K  r   r   r   )r   r   kwargsr   r   r   	_str_wrap   r   z BaseStringArrayMethods._str_wrap|c                 C  r   r   r   rC   r   r   r   _str_get_dummies   r   z'BaseStringArrayMethods._str_get_dummiesc                 C  r   r   r   rJ   r   r   r   _str_isalnum   r   z#BaseStringArrayMethods._str_isalnumc                 C  r   r   r   rJ   r   r   r   _str_isalpha   r   z#BaseStringArrayMethods._str_isalphac                 C  r   r   r   rJ   r   r   r   _str_isdecimal   r   z%BaseStringArrayMethods._str_isdecimalc                 C  r   r   r   rJ   r   r   r   _str_isdigit   r   z#BaseStringArrayMethods._str_isdigitc                 C  r   r   r   rJ   r   r   r   _str_islower   r   z#BaseStringArrayMethods._str_islowerc                 C  r   r   r   rJ   r   r   r   _str_isnumeric   r   z%BaseStringArrayMethods._str_isnumericc                 C  r   r   r   rJ   r   r   r   _str_isspace   r   z#BaseStringArrayMethods._str_isspacec                 C  r   r   r   rJ   r   r   r   _str_istitle   r   z#BaseStringArrayMethods._str_istitlec                 C  r   r   r   rJ   r   r   r   _str_isupper   r   z#BaseStringArrayMethods._str_isupperc                 C  r   r   r   rJ   r   r   r   _str_capitalize   r   z&BaseStringArrayMethods._str_capitalizec                 C  r   r   r   rJ   r   r   r   _str_casefold   r   z$BaseStringArrayMethods._str_casefoldc                 C  r   r   r   rJ   r   r   r   
_str_title   r   z!BaseStringArrayMethods._str_titlec                 C  r   r   r   rJ   r   r   r   _str_swapcase   r   z$BaseStringArrayMethods._str_swapcasec                 C  r   r   r   rJ   r   r   r   
_str_lower   r   z!BaseStringArrayMethods._str_lowerc                 C  r   r   r   rJ   r   r   r   
_str_upper   r   z!BaseStringArrayMethods._str_upperc                 C  r   r   r   )r   formr   r   r   _str_normalize   r   z%BaseStringArrayMethods._str_normalizec                 C  r   r   r   r   to_stripr   r   r   
_str_strip   r   z!BaseStringArrayMethods._str_stripc                 C  r   r   r   rd   r   r   r   _str_lstrip   r   z"BaseStringArrayMethods._str_lstripc                 C  r   r   r   rd   r   r   r   _str_rstrip   r   z"BaseStringArrayMethods._str_rstripprefixreturnr   c                 C  r   r   r   )r   ri   r   r   r   _str_removeprefix   r   z(BaseStringArrayMethods._str_removeprefixsuffixc                 C  r   r   r   )r   rl   r   r   r   _str_removesuffix   r   z(BaseStringArrayMethods._str_removesuffixFc                 C  r   r   r   )r   r   r,   rG   r   r   r   
_str_split   r   z!BaseStringArrayMethods._str_splitc                 C  r   r   r   )r   r   r,   r   r   r   _str_rsplit   r   z"BaseStringArrayMethods._str_rsplitrG   c                 C  r   r   r   )r   r   r   rG   r   r   r   _str_extract   r   z#BaseStringArrayMethods._str_extract)r   )r   r   )Tr   NTr   )r(   Tr   T)r   r)   r*   r+   r,   r-   r!   r.   r   r-   r#   r.   )r   r2   r!   r.   r   r-   r"   r   )r   r)   r!   r.   r   r-   r"   r   )r6   )r   N)NNN)rQ   )ri   r2   rj   r   )rl   r2   rj   r   )Nr(   F)Nr(   )r   T)r   r2   r   r-   rG   r.   ):__name__
__module____qualname____doc__r   abcabstractmethodr   r    r$   r&   r'   r/   r1   npnanr4   r5   r9   r=   r>   r?   r   rA   rB   rE   rH   rI   rK   r   rL   rN   rP   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rc   rf   rg   rh   rk   rm   rn   ro   rp   r   r   r   r   r      s    
	






















r   )
__future__r   ru   collections.abcr   retypingr   numpyrw   pandas._typingr   pandasr   ABCr   r   r   r   r   <module>   s    