I'd like to df['series'].replace('-','') on a series in a pandas dataframe, but nothing happens when I run the method. I assume it has to do with the fact that a dash is an operator(might be using that term incorrectly). I've tried playing around with Regex, but can't find a solution. (FYI DataType of the column is Object)
df['series'] = df['series'].str.replace('-','')
df['series'] = df['series'].str.replace(r'-','')
df['series'] = df['series'].str.replace('\-','')
df['series'] = df['series'].replace('-','')
df['series'] = df['series'].replace(r'-','')
df['series'] = df['series'].replace('\-','')
And all of the above with Regex set to False