Pandas Groupby Mean Round

[Solved] Pandas Groupby Mean Round | Perl - Code Explorer | yomemimo.com
Question : pandas groupby mean round

Answered by : yellowed-yacare-xp9k25bjfn7u

data.mean().round(0) # Rounds mean to nearest integer, e.g. 1.95 = 2 and 1.05 = 1

Source : https://stackoverflow.com/questions/45451189/in-pandas-can-you-aggregate-by-mean-and-round-that-mean-to-the-nearest-int | Last Update : Fri, 16 Oct 20

Answers related to pandas groupby mean round

Code Explorer Popular Question For Perl