You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting missing values raises an error, which causes sampling to fail.
Trace:
File ".../realtabformer/rtf_sampler.py", line 332, in _recover_data_values
group_series.str.replace("[^0-9]", "", regex=True)
File ".../pandas/core/series.py", line 4397, in map
new_values = self._map_values(arg, na_action=na_action)
File ".../pandas/core/base.py", line 924, in _map_values
new_values = map_f(values, mapper)
File "pandas/_libs/lib.pyx", line 2834, in pandas._libs.lib.map_infer
File ".../realtabformer/rtf_sampler.py", line 333, in <lambda>
.map(lambda x: int(x) if x else None)
ValueError: cannot convert float NaN to integer
Description:
Converting missing values raises an error, which causes sampling to fail.
Trace:
Link and Suggested Solution:
REaLTabFormer/src/realtabformer/rtf_sampler.py
Line 333 in 4f972c4
Replace
map(lambda x: int(x) if x else None)
withmap(lambda x: int(x) if x==x else None)
Environment:
The text was updated successfully, but these errors were encountered: