Imagine we have a data set like this:
import pandas as pd import numpy as np df = pd.DataFrame({\'ID\':[1,1,1,2,2,2,3,3,3,4,4,4], \'Number\':[234, 43, 455, 112,