df['range'] = df['range'].str.replace(',','-')
# this will replace "Boston Celtics" with "Omega Warrior" df.replace(to_replace ="Boston Celtics", value ="Omega Warrior")
df.replace([np.inf, -np.inf], np.nan)
df.replace(0, 5)