Skip to content

Possibility to include np.inf as end point in pd.cut bins. #3415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mattias-lundell opened this issue Apr 22, 2013 · 3 comments
Closed

Possibility to include np.inf as end point in pd.cut bins. #3415

mattias-lundell opened this issue Apr 22, 2013 · 3 comments
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations
Milestone

Comments

@mattias-lundell
Copy link

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)
@filmor
Copy link
Contributor

filmor commented May 14, 2013

Actually this is possible, however the _format_labels function tile.py has to be fixed to properly display inf values. If you define the labels manually it works.

@jreback
Copy link
Contributor

jreback commented Sep 22, 2013

@filmor want to do a PR for this?

@jreback
Copy link
Contributor

jreback commented Sep 25, 2013

closed by #4954

@jreback jreback closed this as completed Sep 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

No branches or pull requests

3 participants