Apply a custom function to a dataframe (for method chaining)
Enables functional-style operations: df_pipe(df, my_func)
@param df The data frame to transform @param func The function to apply (must match pipe_func interface) @return Transformed data frame
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(data_frame), | intent(in) | :: | df | |||
| procedure(pipe_func) | :: | func |
function df_pipe(df, func) result(result_df) type(data_frame), intent(in) :: df procedure(pipe_func) :: func type(data_frame) :: result_df result_df = func(df) end function df_pipe