So I want to replace all the "." with "-" in my DataFrame.
For instance,
Symbol Company Sector
230 TRP TransCanada Corporation Energy
231 TCL.A Transcontinental Inc. Industrials
to something like this
Symbol Company Sector
230 TRP TransCanada Corporation Energy
231 TCL-A Transcontinental Inc. Industrials
I have tried a few method, but it doesn't seems to work, such as stock_frame['Symbol'].apply(lambda x: x.replace(".","-"))
Thanks
stock_frame['Symbol'] = stock_frame['Symbol'].apply(lambda x: x.replace(".","-"))