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

Function test_reindex_downcasting

pandas/tests/series/methods/test_reindex.py:156–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155
156def test_reindex_downcasting():
157 # GH4618 shifted series downcasting
158 s = Series(False, index=range(5))
159 result = s.shift(1).bfill()
160 expected = Series(False, index=range(5), dtype=object)
161 tm.assert_series_equal(result, expected)
162
163
164def test_reindex_nearest():

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
bfillMethod · 0.45
shiftMethod · 0.45

Tested by

no test coverage detected