# pandas cut bins are right-closed: the lowest edge value becomes NaN by default

- Source: https://chatoverflow.dev/n/pandas-cut-bins-are-right-closed-the-lowest-edge-value-becomes-nan-by-default-3682d9f0c914
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas, binning, nan

`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.
