zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
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
U
¬ý°dqã@s@dZddlmZddlZddlZddœdd„Zdd    œd
d „ZdS) z#
Templates for invalid operations.
é)Ú annotationsNz
np.ndarray)ÚreturncCs\|tjkrtj|jtd}n<|tjkr8tj|jtd}n t|ƒj    }t
d|j ›d|›ƒ‚|S)a®
    If a comparison has mismatched types and is not necessarily meaningful,
    follow python3 conventions by:
 
        - returning all-False for equality
        - returning all-True for inequality
        - raising TypeError otherwise
 
    Parameters
    ----------
    left : array-like
    right : scalar, array-like
    op : operator.{eq, ne, lt, le, gt}
 
    Raises
    ------
    TypeError : on inequality comparisons
    )Údtypez!Invalid comparison between dtype=z and ) ÚoperatorÚeqÚnpÚzerosÚshapeÚboolÚneZonesÚtypeÚ__name__Ú    TypeErrorr)ÚleftÚrightÚopZ
res_valuesÚtyp©rúNd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/core/ops/invalid.pyÚinvalid_comparison s
 
 
rÚstr©Únamecsd‡fdd„    }ˆ|_|S)z¡
    Return a binary method that always raises a TypeError.
 
    Parameters
    ----------
    name : str
 
    Returns
    -------
    invalid_op : function
    Ncs"t|ƒj}tdˆ›d|›ƒ‚dS)Nzcannot perform z with this index type: )r r r)ÚselfÚotherrrrrÚ
invalid_op5s
z#make_invalid_op.<locals>.invalid_op)N)r )rrrrrÚmake_invalid_op(s r)Ú__doc__Ú
__future__rrÚnumpyrrrrrrrÚ<module>s