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\',
Two columns can be ffill() simultaneously as given below:
ffill()
df1 = df[['X','Y']].ffill()