I need to forward fill values in a column of a dataframe within groups. I should note that the first value in a group is never missing by construction. I have the following
what about this
df.groupby('a').b.transform('ffill')