MCPcopy
hub / github.com/pandas-dev/pandas / test_invert_array

Function test_invert_array

pandas/tests/series/methods/test_explode.py:68–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67
68def test_invert_array():
69 df = pd.DataFrame({"a": pd.date_range("20190101", periods=3, tz="UTC")})
70
71 listify = df.apply(lambda x: x.array, axis=1)
72 result = listify.explode()
73 tm.assert_series_equal(result, df["a"].rename())
74
75
76@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

applyMethod · 0.95
explodeMethod · 0.45
renameMethod · 0.45

Tested by

no test coverage detected