Prettify results of pipe functions by removing leading and tailing NAs

.prettify_result(data, index_col = "idx", date_col = "date")

Arguments

data

Module object or dataframe. If dataframe, must contain a column named index_col or date_col (or both),

index_col

string. Name of the index column.

date_col

string. Name of the date column.

Value

The input dataframe without leading NA rows.