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

Function test_dst_transitions

pandas/tests/io/pytables/test_timezones.py:301–317  ·  view source on GitHub ↗
(temp_hdfstore)

Source from the content-addressed store, hash-verified

299
300
301def test_dst_transitions(temp_hdfstore):
302 # make sure we are not failing on transitions
303 times = date_range(
304 "2013-10-26 23:00",
305 "2013-10-27 01:00",
306 tz="Europe/London",
307 freq="h",
308 ambiguous="infer",
309 )
310 times = times._with_freq(None) # freq doesn't round-trip
311
312 for i in [times, times + pd.Timedelta("10min")]:
313 df = DataFrame({"A": range(len(i)), "B": i}, index=i)
314 temp_hdfstore.append("df", df)
315 result = temp_hdfstore.select("df")
316 tm.assert_frame_equal(result, df)
317 temp_hdfstore.remove("df")
318
319
320@pytest.mark.filterwarnings(

Callers

nothing calls this directly

Calls 6

date_rangeFunction · 0.90
DataFrameClass · 0.90
_with_freqMethod · 0.45
appendMethod · 0.45
selectMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected