Jul-16-2019, 03:02 AM
You need to work around
As a starting point, consider the following:
.cut
method.As a starting point, consider the following:
df.groupby(pd.cut(df.x, [0, 1, 3, 30, df.Difference.max()], right=False)).count().values / len(df) * 100