Open jouss3ph opened 3 years ago
it is on str.replace function, and the default regex value will be changed on future python releases to false. So here is the solution: data[col] = data[col].str.replace('+', '', regex=True).str.replace(',', '', regex=True).astype(float).astype(int)
I believe that python will change the default value for some functions, here is the warning I got. Thanks
c:\program files\python37\lib\site-packages\covid_daily\covid.py:85: FutureWarning: The default value of regex will change from True to False in a future version. In addition, single character regular expressions willnot be treated as literal strings when regex=True. data[col] = data[col].str.replace('+', '').str.replace(',', '').astype(float).astype(int)