TransWikia.com

Variable name change on entire code in Jupyter Notebook

Stack Overflow Asked by dogukanakgol on November 27, 2020

I want to change a variable name with another but I have to change it manually step by step on entire code where the variable that I want to change its name is there

enter image description here

I want to change all diabetes_2 values with the diabetes_4 name

2 Answers

This is simple to replace you just have to close the ipynb file and open it with a simple notepad

Once you open it you will fing that the file is structured in a DOM format.

here you just have to find (diabetes_2) and replace(diabetes_4) the variable.

and open it with Jupyter you will find that new variable is reflected.

Answered by KC_Analyst on November 27, 2020

Enter Command Mode by pressing esc, followed by find and replace key binding f, so esc then f.

Answered by Serge de Gosson de Varennes on November 27, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP