[Python] Undo a change that was performed using Pandas

Discussão em 'Python' iniciado por Stack, Abril 11, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to know if there's a technique to simply undo a change that was done using Pandas.

    For example, I did a string replacement on a few thousand rows of Pandas Dataframe, where, every occurrence of "&" in its string be replaced with "and". However after performing the replacement, I found out that I've made a mistake in the changes and would want to revert back to the Dataframe's most latest form before that string replacement was done.

    Is there a way to do this?

    Continue reading...

Compartilhe esta Página