| 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/json/__pycache__/ |
Upload File : |
�
0 �g�1 � �d � d dl Z d dl mZ d dlmZ d dlmZmZ d dlZd dlZd dl Z d dl
Z
d dlZd dl
Z
d dlmZ d dlmZ d dlmc mZ d dlZd dlmZmZmZmZmZmZmZmZm Z d dl!m"Z# d dl$m%Z%m&Z& d d l'm(Z( d d
l)m*Z* d� Z+d� Z, G d
� d� Z-d� Z.d� Z/d� Z0d� Z1 ejd d� d� � Z3d� Z4y)� N)� timedelta)�Decimal)�BytesIO�StringIO)�using_pyarrow_string_dtype)�IS64) �NA� DataFrame�
DatetimeIndex�Index�
RangeIndex�Series� Timestamp�
date_range� read_json)�ArrowStringArray�StringArray)�ArrowStringArrayNumpySemantics)�ujson_dumpsc �p � t ddgddggddg�� } d}d}t j t |�� 5 t |d �
� d d d � t j t |�� 5 t | j
� d �
� d d d � t j t |�� 5 t dd�
� }t j || � d d d � t j t |�� 5 t d
d �
� }d d d � t j t |�� 5 t dd �
� }t j | � d d d � y # t
$ r Y ��w xY w# 1 sw Y ��xY w# 1 sw Y ��xY w# 1 sw Y ��xY w# t
$ r Y ��w xY w# 1 sw Y ��xY w# t
$ r Y �zw xY w# 1 sw Y y xY w)N� � �a�b��columnsz[{"a": 1, "b": 2}
{"a": 3, "b": 4}
{"a": 5, "b": 6}
{"a": 7, "b": 8}z�Passing literal json to 'read_json' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.��matchF��lines�!{"a": 1, "b": 2}
{"b":2, "a" :1}
T�4{"a\\":"foo\\","b":"bar"}
{"a\\":"foo\"","b":"bar"}
)r
�tm�assert_produces_warning�
FutureWarningr �
ValueError�to_json�assert_frame_equal)�expected�jsonl�msg�results �BC:\Python312\Lib\site-packages\pandas/tests/io/json/test_pandas.py�test_literal_json_deprecationr. + s� � ��1�a�&�1�a�&�)�C��:�>�H�
�E� :� �
� #� #�M�� =� � ��e�5�)��
� #� #�M�� =� 3��(�"�"�$�E�2�3�
� #� #�M�� =� 0��@��M��
���f�h�/�0�
� #� #�M�� =� � ��O���F��
� #� #�M�� =� 0� ��D�E�R�F� ���f�h�/�0� 0��'