Skip to content

Commit 673c8f8

Browse files
updated read_json function to auto infer orient from the json schema if its table or split
1 parent 163873f commit 673c8f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/json/test_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2300,7 +2300,7 @@ def test_large_number():
23002300
(json.dumps({"columns": ["A"], "data": [[1], [2], [3]]}), False),
23012301
],
23022302
)
2303-
def test_read_json_auto_infer(json_data, should_fail, tmp_path):
2303+
def test_read_json_auto_infer_orient_table_split(json_data, should_fail, tmp_path):
23042304
"""Test pd.read_json auto-infers 'table' and 'split' formats."""
23052305

23062306
# Use tmp_path to create a temporary file

0 commit comments

Comments
 (0)