hyb
2025-12-31 6cdcd01f77e11b72c323603e27ebdb85b15223c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Ë
nñúh¾ãóP—UddlmZddlmZddlZddlmZddlm    Z    ddl
m Z m Z Gd„de «Z Gd    „d
e «Zd ZeGd „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„«Z e
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 úNH:\Change_password\venv_build\Lib\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