Skip to content
Advertisement

Checking progress of an ongoing for loop in JupyterLab

I have been running a for loop for 4 days now. I understand that there are better ways to do it, but I needed to run it just once. Is there a way to check the progress without interrupting the loop? I’m terrified to loose all of my progress. This is my code

JavaScript

Advertisement

Answer

Given the information from your comment, here is the most efficient way of computing it in Python (as far as I know).

JavaScript

Hopefully this will terminate in a reasonable amount of time!

Edit:

I forgot to add that you have to cast the text column to the “string” datatype. Before doing the above, cast the text column using

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement