I need to change the NaN values the column 'FocusColumn' to empty lists.
I tried to do it like this:
df['FocusColumn'].fillna([],inplace=True)
But it throws me the following error:
337 if validate_scalar_dict_value and isinstance(value, (list, tuple)):
338 raise TypeError(
339 '"value" parameter must be a scalar or dict, but
340 f'you passed a "{type(value).__name__}"'
341 )
TypeError: "value" parameter must be a scalar or dict, but you passed a "list"
What is the correct way to do it?