df_pipe Function

public function df_pipe(df, func) result(result_df)

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

Arguments

Type IntentOptional Attributes Name
type(data_frame), intent(in) :: df
procedure(pipe_func) :: func

Return Value type(data_frame)


Source Code

    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