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

Method test_at_time_tz

pandas/tests/frame/methods/test_at_time.py:86–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 df.at_time(hour)
85
86 def test_at_time_tz(self):
87 # GH#24043
88 dti = date_range("2018", periods=3, freq="h", tz="US/Pacific")
89 df = DataFrame(list(range(len(dti))), index=dti)
90 result = df.at_time(time(4, tzinfo=zoneinfo.ZoneInfo("US/Eastern")))
91 expected = df.iloc[1:2]
92 tm.assert_frame_equal(result, expected)
93
94 def test_at_time_raises(self, frame_or_series):
95 # GH#20725

Callers

nothing calls this directly

Calls 3

date_rangeFunction · 0.90
DataFrameClass · 0.90
at_timeMethod · 0.80

Tested by

no test coverage detected