Aug-05-2021, 01:11 PM
(Aug-05-2021, 01:30 AM)klllmmm Wrote: Try adding;
inplace=True
Thank you. I tried that and it didn't work (and the above was output to my Jupyter notebook so I could see the results) but I think, I have found a solution.
data.apply(lambda x: x.loc[data_cols_cy].fillna(value=x.loc['FC Month']), axis=1)I think, my mistake was to restrict the data frame when calling apply. By just using the method on the entire data frame, I now have access to the other column I need.
Thanks again for the reply,
Rene