MCPcopy Create free account
hub / github.com/dask/dask / test_read_json_basic

Function test_read_json_basic

dask/dataframe/io/tests/test_json.py:101–110  ·  view source on GitHub ↗
(orient)

Source from the content-addressed store, hash-verified

99
100@pytest.mark.parametrize("orient", ["split", "records", "index", "columns", "values"])
101def test_read_json_basic(orient):
102 with tmpfile("json") as f:
103 df.to_json(f, orient=orient, lines=False)
104 actual = dd.read_json(f, orient=orient, lines=False)
105 actual_pd = pd.read_json(f, orient=orient, lines=False)
106
107 assert_eq(actual, actual_pd)
108 if orient == "values":
109 actual.columns = list(df.columns)
110 assert_eq(actual, df)
111
112
113@pytest.mark.parametrize("fkeyword", ["pandas", "json"])

Callers

nothing calls this directly

Calls 4

tmpfileFunction · 0.90
assert_eqFunction · 0.90
to_jsonMethod · 0.80
read_jsonMethod · 0.80

Tested by

no test coverage detected