Thanks @ptrblck !
But if I run the piece of code in a Jupyter cell, the values of params1 are reset to the original ones, aren’t they? Since every time  I’m creating the variable from the original values and operating with it (like wrapping all your code inside a for loop that repeats the code execution).