Skip to content

Drop column syntax inconsistency #1212

@HeWhoHeWho

Description

@HeWhoHeWho

Describe the bug
In the context of CSV file, any capitalised column headers need to be wrapped with double quotation, but when it comes to .drop(col_name), the double quotation is not needed all of a sudden.

To Reproduce
df.drop('"ID_For_Students"') -> This should work but it didn't
df.drop('ID_For_Students') -> This worked instead

Expected behavior
df.drop('"ID_For_Students"') -> This should be the correct & standardised syntax for CSV file column headers with capitalisation.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions