import pandas as pd
from tqdm.notebook import tqdm
tqdm.pandas()
df['example'].progress_apply(lambda x: x**2)
import pandas as pd
from tqdm import tqdm
# Create new `pandas` methods which use `tqdm` progress
# (can use tqdm_gui, optional kwargs, etc.)
tqdm.pandas()
# Now you can use `progress_apply` instead of `apply`
df.progress_apply(lambda x: x**2)