DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas groupby mean round
data.mean().round(0) # Rounds mean to nearest integer, e.g. 1.95 = 2 and 1.05 = 1
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#groupby
ADD COMMENT
Topic
COMMENT
Name
2+5 =
Submit