Skip to content

BUG: retbins options not working with cut #8818

Closed
@8one6

Description

@8one6
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions