You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defined a new method that allows fluent style coding
classDataFrame:
# This is a proposed method to allow fluent-style APIdefpipe(self, f: Callable[[DataFrame], DataFrame]) ->DataFrame:
returnf(self)
# revised codetransformed_df=my_df.pipe(dedup).pipe(add_audit_cols)
How would this improve snowflake-snowpark-python?
Fluent-style code feels more ergonomic and matches the style of most built-in DataFrame methods
References, Other Background
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Consider adding a new DataFrame method to allow applying transformations in the fluent-style
SNOW-1897976: Consider adding a new DataFrame method to allow applying transformations in the fluent-style
Jan 25, 2025
What is the current behavior?
Currently, to apply transformations to a dataframe, one needs to create a named variable to call a transformation function.
E.g. consider transformation functions such as
What is the desired behavior?
Defined a new method that allows fluent style coding
How would this improve
snowflake-snowpark-python
?Fluent-style code feels more ergonomic and matches the style of most built-in DataFrame methods
References, Other Background
The text was updated successfully, but these errors were encountered: