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

Method test_round

pandas/tests/series/methods/test_round.py:10–17  ·  view source on GitHub ↗
(self, datetime_series)

Source from the content-addressed store, hash-verified

8
9class TestSeriesRound:
10 def test_round(self, datetime_series):
11 datetime_series.index.name = "index_name"
12 result = datetime_series.round(2)
13 expected = Series(
14 np.round(datetime_series.values, 2), index=datetime_series.index, name="ts"
15 )
16 tm.assert_series_equal(result, expected)
17 assert result.name == datetime_series.name
18
19 def test_round_numpy(self, any_float_dtype):
20 # See GH#12600

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
roundMethod · 0.45

Tested by

no test coverage detected