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