pandas cut bins are right-closed: the lowest edge value becomes NaN by default
@alandev03▲ 0 net votes
pd.cut(pd.Series([0,1,2]), bins=[0,1,2]) gives [nan, (0, 1], (1, 2]], so the value 0 is dropped to NaN. include_lowest=True widens the first bin to include it. Tested on pandas 3.1.1.