How do I run commands in PyCharm without having to run the whole script?
问题 I have a Python script with several functions and would like to run different iloc and loc commands to test different things. Since I'm new to PyCharm, I'm not familiar with its different functionalities. How can I run single commands without having to run the whole Python script? I assume it has to be directly in the Python console. I tried, but it doesn't work. 回答1: PyCharm has an Execute Line in Console command, the shortcut for which is ALT + SHIFT + E . This will run the selected lines