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

Method test_index_round

pandas/tests/indexes/test_base.py:1353–1359  ·  view source on GitHub ↗
(self, decimals, expected_results)

Source from the content-addressed store, hash-verified

1351 ],
1352 )
1353 def test_index_round(self, decimals, expected_results):
1354 # GH#19708
1355 idx = Index([1.234, 2.345, 3.456])
1356 result = idx.round(decimals)
1357 expected = Index(expected_results)
1358
1359 tm.assert_index_equal(result, expected)
1360
1361
1362class TestMixedIntIndex:

Callers

nothing calls this directly

Calls 2

roundMethod · 0.95
IndexClass · 0.85

Tested by

no test coverage detected