diff --git a/common/converters.py b/common/converters.py index a9a1558563340cbe010d024b579b3a0a782bac91..faf5c9c73c491195f276e0aabdca1f12b788fa29 100644 --- a/common/converters.py +++ b/common/converters.py @@ -39,7 +39,7 @@ class df_converters(): offset = offset if offset else self.numeric_offset # First do the appropriate managing of white spaces, to the right, they mean 0! data = data.replace(r'^\s*$', np.nan, regex=True) - data = data.str.replace(' ', '0') + data = data.replace(' ', '0') # Convert to numeric, then scale (?!) and give it's actual int type data = pd.to_numeric(data,errors = 'coerce') # astype fails on strings, to_numeric manages errors....! data = offset + data * scale