Skip to content

Allow "str" for function arguments that accept "col" expressions #1757

Description

@ntjohnson1

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
This is an extension of #1563 and similar PRs.
I tried to write total_size = st.aggregate([], [F.sum("some_column")]) but realized I had to wrap some_column in dfn.col.

Describe the solution you'd like
I'd like functions that take a column as an argument to also accept a string so I can just pass the column name.

Describe alternatives you've considered
Wrapping it myself.

Additional context
If we update this similar to other interface generalizations we should update the doc strings to reflect this simplification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions