| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/pandas/core/ops/__pycache__/ |
Upload File : |
�
- �g� � �P � d Z ddlmZ ddlZddlmZ ddlZerddlm Z dd�Z
d d�Zy)
z#
Templates for invalid operations.
� )�annotationsN)�
TYPE_CHECKING)�nptc �F � |t j u r't j | j t
�� }|S |t j u r't j | j t
�� }|S t |� j }t d| j � d|� �� �)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�ne�ones�type�__name__� TypeErrorr )�left�right�op�
res_values�typs �9C:\Python312\Lib\site-packages\pandas/core/ops/invalid.py�invalid_comparisonr s� � �&