why it has a NaN value when cut the data to bins

lit*_*ely -4 python ipython

I encounter a question: 在此处输入图片说明

why it has a NaN value

Mob*_*erg 5

The lower bound is not included so the 6:es are sorted into the NaN bin.

Change your ranges to start 5.