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

Method test_times_array

pandas/tests/window/test_groupby.py:1299–1306  ·  view source on GitHub ↗
(self, times_frame)

Source from the content-addressed store, hash-verified

1297 tm.assert_frame_equal(result, expected)
1298
1299 def test_times_array(self, times_frame):
1300 # GH 40951
1301 halflife = "23 days"
1302 times = times_frame.pop("C")
1303 gb = times_frame.groupby("A")
1304 result = gb.ewm(halflife=halflife, times=times).mean()
1305 expected = gb.ewm(halflife=halflife, times=times.values).mean()
1306 tm.assert_frame_equal(result, expected)
1307
1308 def test_dont_mutate_obj_after_slicing(self):
1309 # GH 43355

Callers

nothing calls this directly

Calls 4

popMethod · 0.45
groupbyMethod · 0.45
meanMethod · 0.45
ewmMethod · 0.45

Tested by

no test coverage detected