HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/pandas/compat/numpy/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/pandas/compat/numpy/__pycache__/__init__.cpython-36.pyc
3

���h��@s�dZddlmZddlZddlZejZee�Zeed�kZ	eed�kZ
eed�kZeed�kZeed�kZ
d	ee�kZed
kr�ede�d���ejd
�Zdd�Zdd�Zdd�ZdddddgZdS)z- support numpy compatibility across versions �)�LooseVersionNz1.16z1.17z1.18z1.19z1.20z.devz1.15.4zQthis version of pandas is incompatible with numpy < 1.15.4
your numpy version is z>.
Please upgrade numpy to >= 1.15.4 to use this pandas versionz	[+-]0000$cCs<t|t�r8|jd�r"|dd�}ntj|�r8|dd�}|S)N�Z��������)�
isinstance�str�endswith�	_tz_regex�search)�s�r�>/tmp/pip-build-5_djhm0z/pandas/pandas/compat/numpy/__init__.py�tz_replacers


rcOst|�}tj|f|�|�S)z�
    provide compat for construction of strings to numpy datetime64's with
    tz-changes in 1.11 that make '2015-01-01 09:00:00Z' show a deprecation
    warning, when need to pass '2015-01-01 09:00:00'
    )r�npZ
datetime64)r
�args�kwargsrrr�np_datetime64_compat'srcOsDt|d�r*t|ttf�r*dd�|D�}nt|�}tj|f|�|�S)z�
    provide compat for construction of an array of strings to a
    np.array(..., dtype=np.datetime64(..))
    tz-changes in 1.11 that make '2015-01-01 09:00:00Z' show a deprecation
    warning, when need to pass '2015-01-01 09:00:00'
    �__iter__cSsg|]}t|��qSr)r)�.0r
rrr�
<listcomp>:sz.np_array_datetime64_compat.<locals>.<listcomp>)�hasattrrr	�bytesrr�array)Zarrrrrrr�np_array_datetime64_compat1srr�_np_version�_np_version_under1p16�_np_version_under1p17�
_is_numpy_dev)�__doc__Zdistutils.versionr�reZnumpyr�__version__rZ_nlvrrZ_np_version_under1p18Z_np_version_under1p19Z_np_version_under1p20r	r�ImportError�compilerrrr�__all__rrrr�<module>s.