If data
is your dataframe, you can get the mean of all the columns as integers simply with:
data.mean().astype(int) # Truncates mean to integer, e.g. 1.95 = 1
or, as of version 0.17.0
:
data.mean().round(0) # Rounds mean to nearest integer, e.g. 1.95 = 2 and 1.05 = 1