df = pd.DataFrame([[1.0000005, 4], [1.232463632, 5], [5.234652, 9], [
    5.675322, 10]], columns=['length', 'force'])
df
df['rounded_length'] = df.length.apply(round, ndigits=0)
resampling non-time-series data