Skip to content

ERR: validate boolean indexing with iloc #8976

Closed
@jreback

Description

@jreback

xref #8956

This should raise a ValueError.

In [18]: s = Series(np.arange(5,1,-1))

In [19]: s
Out[19]: 
0    5
1    4
2    3
3    2
dtype: int64

In [20]: s.iloc[[True,False,True]]
Out[20]: 
0    5
2    3
dtype: int64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Error ReportingIncorrect or improved errors from pandasIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions