Resample with binsize?

hahaha I did the same question 2 years ago