0

I have a pyspark dataframe my_df in which one column my_col has NaN values. I would like to replace NaN values with 0. Doing

my_df.my_col = my_df.my_col.fillna(0)

returns the following error:

'Column' object is not callable

ascripter
  • 5,665
  • 12
  • 45
  • 68

0 Answers0