In a python data table, I wanted to replace empty strings with NaN. When I tried, I get the below error. It works with pandas. Thanks in advance for the help.
Datatable Syntax I tried:
dt[:,"column_name"].replace('',np.nan)
Error Received:
Cannot replace string value
''
with a value of type <class 'float'>
pandas syntax that worked:
pd["column_name"]=pd["column_name"].replace('',np.nan)