I have a dataframe mk
HomeID tract value
1 1 FIPS04 314522.70
2 2 FIPS03 201834.99
3 3 FIPS03 196524.75
4 4 FIPS03 198746.18
5 5 FIPS04 296456.83
6 6 FIPS02 130258.99
7 7 FIPS02 122678.42
8 8 FIPS02 152234.58
9 9 FIPS03 164635.87
10 10 FIPS02 131209.42
I have to aggregate the dataframe by tract
and put those values into a new dataframe and calculate the aggregated values of mean
,sd
,length
.