stats¶
round¶
The round() function rounds values of .5 towards an even integer (Python Docs, n.d. a). So .5 is round up for positive values and round down for negative values.
For instance, both round(0.5) and round(-0.5) return 0, while round(1.5) gives 2 and round(-1.5) gives -2. This Python behaviour is a bit different from how rounding usually goes.
pd.quantile¶
1, consider the first and last values are the edges:¶
not #2, consider the first and last values are the first and last data centers: