Skip to content

BUG: retbins options not working with cut #8818

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
8one6 opened this issue Nov 14, 2014 · 1 comment
Closed

BUG: retbins options not working with cut #8818

8one6 opened this issue Nov 14, 2014 · 1 comment
Labels
Bug Categorical Categorical Data Type

Comments

@8one6
Copy link

8one6 commented Nov 14, 2014

import pandas as pd
import numpy as np

s = pd.Series(np.random.randn(100))
pd.cut(s, 10, retbins=True)

This throws

ValueError: Wrong number of items passed 2, placement implies 100

Am I doing something obviously wrong?

@jreback
Copy link
Contributor

jreback commented Nov 14, 2014

#8589

fixed this in 0.15.1

@jreback jreback closed this as completed Nov 14, 2014
@jreback jreback added Bug Categorical Categorical Data Type labels Nov 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Categorical Categorical Data Type
Projects
None yet
Development

No branches or pull requests

2 participants