Skip to content

set_column_by_name/ set_column? #235

Closed
@ivirshup

Description

@ivirshup

Thanks for the work that you're doing here!

I would like to request the addition of DataFrame.set_item_by_name to the API.

From the demonstration at euroscipy last week, the ugliest part of the usage was adding columns by:

for col in cols:
    df.insert(len(df.get_column_names()), col)

This seems like an obvious omission, but I haven't found any documentation saying why it hasn't been included. Seems like it was discussed in a call (#138 (comment))?

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