| 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/tests/io/__pycache__/ |
Upload File : |
�
0 �gQ � �l � d Z ddlmZ ddlmZ ddlZddlZddlZddlmZ ddlZddl Z ddl
Z
ddlmZ ddl
Z
ddlZddlZddlmZ ddlZddlZddlZddlZddlmZmZ dd lmZ dd
lmZ ddlmc m Z! ddl"Z#ddl"m$Z$m%Z%m&Z&m'Z' ddl(m)Z* ddl+m,Z, ddl-m c m.Z/ dd
l0m1Z1m2Z2 d� Z3ejh jk ddd e6d� e7d� e
jp d� edg d�� e7d� js dd� e7d� js dd� ddd� ejt d� jw dd�� ejt d� jw dd�� ejt d� jw dd�� dd�ddd�f g� d� � Z<d� Z=d� Z>d� Z?dUd �Z@ejh jk d! ej� e>d"�#� ej� e#j� d$�#� ej� ej e#j� e
j� �%� d&�#� ej� ej e#j� d'�%� d(�#� ej� ej e#j� d)�%� d*�#� g� ejh jk d+e#j� e>g� ejh jk d, e@ e,� � � d-� � � � ZDd.� ZEd/� ZFej� d0� � ZH G d1� d2� ZI G d3� d4� ZJejh jk d5d6gd7 e%g d8�� fd9e#j� j� g d8�g d:�g� fg� d;� � ZMd<� ZNejh jk d=g d>�� d?� � ZOd@� ZP G dA� dBej� � ZRdC� ZSdD� ZTdE� ZUdF� ZVejh jk dGdHdIdG ej
dJdKdK� dLg� dM� � ZWdN� ZXdO� ZYe!j� dP� � Z[ejh jk dQe
j� e
j� g� dR� � Z]dS� Z^dT� Z_y)Va<
manage legacy pickle tests
How to add pickle tests:
1. Install pandas version intended to output the pickle.
2. Execute "generate_legacy_storage_files.py" to create the pickle.
$ python generate_legacy_storage_files.py <output_dir> pickle
3. Move the created pickle to "data/legacy_pickle/<version>" directory.
� )�annotations)�arrayN)�partial)�Path)�Any)�
get_lzma_file�is_platform_little_endian)�import_optional_dependency)�flatten_buffer)� DataFrame�Index�Series�period_range)�create_pickle_data)�Day�MonthEndc �b � t |t � rt j || � y |j d� rt j
| |� y |dk( r/|t j u r| t j u s
J �| |k( sJ �y y t t d|� d�t j � } || |� y )N�sp_� timestamp�assert_�_equal)
�
isinstancer
�tm�assert_index_equal�
startswith�assert_equal�pd�NaT�getattr�assert_almost_equal)�result�expected�typ�
comparators �=C:\Python312\Lib\site-packages\pandas/tests/io/test_pickle.py�compare_elementr&