pd.Series.round
¶
pandas.Series.round(decimals=0)
Supported Arguments¶
argument | datatypes |
---|---|
other |
Series with numeric data |
Note
Series.round
is only supported on Series of numeric data.
Example Usage¶
>>> @bodo.jit
... def f(S):
... return S.round(2)
>>> S = pd.Series(np.linspace(100, 1000))
>>> f(S)
0 100.00
1 118.37
2 136.73
3 155.10
4 173.47
5 191.84
6 210.20
7 228.57
8 246.94
9 265.31
10 283.67
11 302.04
12 320.41
13 338.78
14 357.14
15 375.51
16 393.88
17 412.24
18 430.61
19 448.98
20 467.35
21 485.71
22 504.08
23 522.45
24 540.82
25 559.18
26 577.55
27 595.92
28 614.29
29 632.65
30 651.02
31 669.39
32 687.76
33 706.12
34 724.49
35 742.86
36 761.22
37 779.59
38 797.96
39 816.33
40 834.69
41 853.06
42 871.43
43 889.80
44 908.16
45 926.53
46 944.90
47 963.27
48 981.63
49 1000.00
dtype: float64