scale the values of dataframe in whole number python code example
Example 1: pandas groupby mean round
data.mean().round(0) # Rounds mean to nearest integer, e.g. 1.95 = 2 and 1.05 = 1
Example 2: how to rescale data pandas
MinMaxScaler()
data.mean().round(0) # Rounds mean to nearest integer, e.g. 1.95 = 2 and 1.05 = 1
MinMaxScaler()