Skip to content
Advertisement

Replacing values using dictionary

What are the reasons why are regex replacment doesn’t work? I have tried ensuring no excess spaces.

JavaScript

When I do df.loc[df['column']=="and another reason with her"] nothing has changed.

Advertisement

Answer

Please use df.replace(regex=dict)

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement