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
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