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
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: