Skip to content

Feature request: get_column_by_name impairs readability #287

Closed
@Vincent-Maladiere

Description

@Vincent-Maladiere

Hey dataframe-api team!

First off, thank you for this effort. I'm a developer of skrub, a data-wrangling package. We aim to support many dataframes, starting with Pandas and Polars, and currently have duplicate logic.

We think the dataframe-API is the way for us (see this discussion) and hope to make the switch soon.

I followed the discussion of #249 and I'm pretty upset about having to use df.get_column_by_name("a") instead of a simpler df["a"] or col("a"). This will obfuscate our code and impair readability, and therefore we may consider keeping our duplicate logic.

To keep an acceptable UX, could we consider having at least a shorter alias to get_column_by_name?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions