if isinstance(output[col][0], str):
    value = output[col].ffill()
else:
    value = [(x * unit) for x in output[col].astype(float).interpolate(
        method='values')]
output[col] = pd.Series(value, index=output.index)
return output
Pandas interpolate data with units