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

Function test_write_json_basic

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

Source from the content-addressed store, hash-verified

165
166@pytest.mark.parametrize("orient", ["split", "records", "index", "columns", "values"])
167def test_write_json_basic(orient):
168 with tmpdir() as path:
169 fn = os.path.join(path, "1.json")
170 df.to_json(fn, orient=orient, lines=False)
171 actual = dd.read_json(fn, orient=orient, lines=False)
172 if orient == "values":
173 actual.columns = list(df.columns)
174 assert_eq(actual, df)
175
176
177def test_to_json_with_get():

Callers

nothing calls this directly

Calls 5

tmpdirFunction · 0.90
assert_eqFunction · 0.90
to_jsonMethod · 0.80
read_jsonMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected