Skip to content

Natural name convention broken for "size" in non-interactive mode. #9367

Closed
@mamikonyan

Description

@mamikonyan

If there is a column named "size", the member syntax return the NumPy .size property instead of the contents of the column:

$ python -c "import pandas; df=pandas.DataFrame({'size':range(3)}); print df.size; print df['size']"

prints

3
0    0
1    1
2    2
Name: size, dtype: int64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions