df[‘Price’]= df.Price.str.replace(’$’,’ ').astype(float)
Getting following warning while execute this line of code
:1: 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.
df[‘Price’]= df.Price.str.replace(’$’,’ ').astype(float)