My code does this:
- reads an about 460 000 row × 45 column datatable from CSV file.
- according to a filter table gives labels to the rows.
- It goes through the whole table several times during running.
In Spyder or Jupiter, the runtime is 12 seconds. But when I run it from Windows PowerShell (python "C:\folders\xy.py") it takes 14 minutes. The running starts immediately in both ways but in the middle where a big calculation task happens the PowerShell stops for minutes. In the Spyder there is a little delay at this point, but just 10 seconds.
My goal is to call this mainly in Shell.
Do you have an idea what can cause the problem and how to solve it?
I tried to reinstall python to have the same release in the shell too, but the result is the same.