Fill missing values
Fills missing values in selected columns using the next or previous entry.
df (DataFrame): The
DataFrame.
… (Symbol): Columns to fill (use
$col syntax).
.direction (String): (Optional)
Direction in which to fill missing values.
The filled DataFrame.
fill(df, $category, .direction = "down")