fill function

Fill in missing values with previous or next value