If I have a dataframe with multiple columns [\'x\', \'y\', \'z\'], how do I forward fill only one column \'x\'? Or a group of columns [\'x\',
[\'x\', \'y\', \'z\']
\'x\'
[\'x\',
for col in ['X', 'Y']: df[col] = df[col].ffill()