./ Alex Tech Blog / Adding Progressbar to a Jupyter Lab Notebook

Adding Progressbar to a Jupyter Lab Notebook

python jupyter machine learning

Adding progressbar to a Jupyter Lab Notebook:

pip3 install tqdm --user
from tqdm import tqdm
for i, row in tqdm(df.iterrows(), total=df.shape[0]):
    ifor_val = something
    if <condition>:
        ifor_val = something_else
    df.at[i,'ifor'] = ifor_val
    pass