Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pandas/core/arrays/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pandas/core/arrays/__pycache__/floating.cpython-312.pyc

�

Mٜg���P�UddlmZddlmZddlZddlmZddlm	Z	ddl
mZmZGd�de�Z
Gd	�d
e�ZdZeGd�d
e
��ZeGd�de
��Zej$ej&�e�ej$ej(�e�iZded<y)�)�annotations)�ClassVarN)�register_extension_dtype)�is_float_dtype)�NumericArray�NumericDtypec��eZdZdZej
ej�ZeZ	e
dd��Ze
dd��Ze
dd��Z
y)	�
FloatingDtypea
    An ExtensionDtype to hold a single size of floating dtype.

    These specific implementations are subclasses of the non-public
    FloatingDtype. For example we have Float32Dtype to represent float32.

    The attributes name & type are set when these subclasses are created.
    c��tS)zq
        Return the array type associated with this dtype.

        Returns
        -------
        type
        )�
FloatingArray��clss �F/usr/local/lib/python3.12/site-packages/pandas/core/arrays/floating.py�construct_array_typez"FloatingDtype.construct_array_types
����c��tS)N)�NUMPY_FLOAT_TO_DTYPEr
s r�_get_dtype_mappingz FloatingDtype._get_dtype_mapping(s��#�#rc�(�|j||��S)z{
        Safely cast the values to the given dtype.

        "safe" in this context means the casting is lossless.
        )�copy)�astype)r�values�dtypers    r�
_safe_castzFloatingDtype._safe_cast,s���}�}�U��}�.�.rN)�returnztype[FloatingArray])r�dict[np.dtype, FloatingDtype])r�
np.ndarrayrznp.dtyper�boolrr)�__name__�
__module__�__qualname__�__doc__�npr�float64�_default_np_dtyper�_checker�classmethodrrr�rrr
r
s]���!�������,���H������$��$��/��/rr
c�4�eZdZdZeZejZdZ	dZ
y)ra�
    Array of floating (optional missing) values.

    .. warning::

       FloatingArray is currently experimental, and its API or internal
       implementation may change without warning. Especially the behaviour
       regarding NaN (distinct from NA missing values) is subject to change.

    We represent a FloatingArray with 2 numpy arrays:

    - data: contains a numpy float array of the appropriate dtype
    - mask: a boolean array holding a mask on the data, True is missing

    To construct an FloatingArray from generic array-like input, use
    :func:`pandas.array` with one of the float dtypes (see examples).

    See :ref:`integer_na` for more.

    Parameters
    ----------
    values : numpy.ndarray
        A 1-d float-dtype array.
    mask : numpy.ndarray
        A 1-d boolean-dtype array indicating missing values.
    copy : bool, default False
        Whether to copy the `values` and `mask`.

    Attributes
    ----------
    None

    Methods
    -------
    None

    Returns
    -------
    FloatingArray

    Examples
    --------
    Create an FloatingArray with :func:`pandas.array`:

    >>> pd.array([0.1, None, 0.3], dtype=pd.Float32Dtype())
    <FloatingArray>
    [0.1, <NA>, 0.3]
    Length: 3, dtype: Float32

    String aliases for the dtypes are also available. They are capitalized.

    >>> pd.array([0.1, None, 0.3], dtype="Float32")
    <FloatingArray>
    [0.1, <NA>, 0.3]
    Length: 3, dtype: Float32
    g�?gN)rr r!r"r
�
_dtype_clsr#�nan�_internal_fill_value�
_truthy_value�
_falsey_valuer(rrrr8s'��7�r�J��6�6���M��Mrraz
An ExtensionDtype for {dtype} data.

This dtype uses ``pd.NA`` as missing value indicator.

Attributes
----------
None

Methods
-------
None

Examples
--------
For Float32Dtype:

>>> ser = pd.Series([2.25, pd.NA], dtype=pd.Float32Dtype())
>>> ser.dtype
Float32Dtype()

For Float64Dtype:

>>> ser = pd.Series([2.25, pd.NA], dtype=pd.Float64Dtype())
>>> ser.dtype
Float64Dtype()
c�X�eZdZUejZdZded<ejd��Z
y)�Float32Dtype�Float32�
ClassVar[str]�name�float32�rN)rr r!r#r4�typer3�__annotations__�_dtype_docstring�formatr"r(rrr0r0��(��
�:�:�D�#�D�-�#��%�%�I�%�6�Grr0c�X�eZdZUejZdZded<ejd��Z
y)�Float64Dtype�Float64r2r3r$r5N)rr r!r#r$r6r3r7r8r9r"r(rrr<r<�r:rr<rr)�
__future__r�typingr�numpyr#�pandas.core.dtypes.baser�pandas.core.dtypes.commonr�pandas.core.arrays.numericrrr
rr8r0r<rr4r$rr7r(rr�<module>rDs���"���<�4��%/�L�%/�PB�L�B�J��>�7�=�7��7��7�=�7��7�
�B�H�H�R�Z�Z��,�.��B�H�H�R�Z�Z��,�.�7��3�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists