import pandas as pd # Specific intervals for the collections intervals = { "1B": pd.Interval(0, 1.5, closed="right"), "3B": pd.Interval(2.5, 3.5, closed="neither"), "7B": pd.Interval(6, 8, closed="neither"), "13B": pd.Interval(10, 14, closed="neither"), "30B": pd.Interval(25, 35, closed="neither"), "65B": pd.Interval(60, 70, closed="neither"), }