Skip to content

Commit

Permalink
updated read_json function to auto infer orient from the json schema …
Browse files Browse the repository at this point in the history
…if its table or split
  • Loading branch information
chandra-teajunkie committed Feb 19, 2025
1 parent 163873f commit 673c8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/io/json/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,7 @@ def test_large_number():
(json.dumps({"columns": ["A"], "data": [[1], [2], [3]]}), False),
],
)
def test_read_json_auto_infer(json_data, should_fail, tmp_path):
def test_read_json_auto_infer_orient_table_split(json_data, should_fail, tmp_path):
"""Test pd.read_json auto-infers 'table' and 'split' formats."""

# Use tmp_path to create a temporary file
Expand Down

0 comments on commit 673c8f8

Please sign in to comment.