Possibility to include np.inf as end point in pd.cut bins. (original) (raw)
I don't know if it is desirable, but I think it would be nice to be able to include an infinity value as the endpoint to the bins in pandas cut function.
pd.cut([10, 20], [1, 5, np.inf], right=False)