Skip to content

NotImplementedError: 'AnnAssign' nodes are not implemented but numpy-like syntax works #21525

Closed
@simtsc

Description

@simtsc

My dataframe df has a column called "Unnamed:_6" which is of dtype object.

Running the following command works just fine:

df[df['Unnamed:_6'] == "Foo"]

However, the equivalent line:

df.query('Unnamed:_6 == "Foo"')

raises the following exception:

NotImplementedError: 'AnnAssign' nodes are not implemented

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