Skip to content

BUG: assignment in Float64Index #7586

Closed
@jreback

Description

@jreback

http://stackoverflow.com/questions/24446500/pandas-valueerror-when-assigning-dataframe-entries-using-index-due-to-a-change

In [2]: A = pd.DataFrame(np.random.rand(10,4), index=np.random.rand(10))

In [3]: A.loc[A.index] = A.loc[A.index]
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions