-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
When trying to run modelling
Encountering this error
/ValueError: could not convert string to float: 'ptsd' Traceback:
File "/home/vk/miniconda3/envs/tf/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "/home/vk/automl/app.py", line 47, in <module>
df.astype(float)
File "/home/vk/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/core/generic.py", line 6240, in astype
new_data = self._mgr.astype(dtype=dtype, copy=copy, errors=errors)
File "/home/vk/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 448, in astype
return self.apply("astype", dtype=dtype, copy=copy, errors=errors)
File "/home/vk/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 352, in apply
applied = getattr(b, f)(**kwargs)
File "/home/vk/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/core/internals/blocks.py", line 526, in astype
new_values = astype_array_safe(values, dtype, copy=copy, errors=errors)
File "/home/vk/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/core/dtypes/astype.py", line 299, in astype_array_safe
new_values = astype_array(values, dtype, copy=copy)
File "/home/vk/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/core/dtypes/astype.py", line 230, in astype_array
values = astype_nansafe(values, dtype, copy=copy)
File "/home/vk/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/core/dtypes/astype.py", line 170, in astype_nansafe
return arr.astype(dtype, copy=True)
Metadata
Metadata
Assignees
Labels
No labels