# setting the name of Pandas progress bar
tqdm.pandas(desc="Processing the name column")# test processing functiondefuser_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]