# setting the name of Pandas progress bar tqdm.pandas(desc="Processing the name column") # test processing function def user_name(text): return text.lower().replace(" ","-") # applying the function df['user_name'] = df['name'].progress_apply(user_name) # displaying top 3 rows df.head(3)
Processing the name column: 100%|██████████| 119390/119390 [00:00<00:00, 164315.63it/s]
hotelobject
is_canceledint64

0

Resort Hotel

0

1

Resort Hotel

0

2

Resort Hotel

0

Hosted onDeepnote