()
| 66 | |
| 67 | |
| 68 | def 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( |