Hi I am trying to delete all hyphens from a csv data table. Where all values are XYZ-001, XYZ-002, XYZ-003, etc AND I want them to look like XYZ001, XYZ002, XYZ003. I cannot seem to figure out how to use the .replace() feature. Any other ideas??
import pandas as pd
dfz = pd.read_csv('control.csv', index_col=0, parse_dates=True)
df1 = pd.DataFrame(dfz[0])
print(dfz['Unnamed: 1'])
dfz['Unnamed: 1'].replace('-','')