tqdm Python Tutorial: Progress Bars for Loops, Pandas, and Jupyter

DataCamp
1,353 views •

Not sure if your Python script is almost done or completely stuck? tqdm adds a live progress bar to any loop in one line, and this video runs every example so you can watch the bars fill. We cover the full tqdm toolkit from DataCamp's tutorial, in order: installing it, your first progress bar, reading what the bar tells you, customizing it with desc, total, bar_format, colour and leave, then nested loops, manual updates, multiprocessing, pandas, and fixing a bar that won't update in Jupyter. CHAPTERS 00:00 Intro 00:19 What is tqdm? 01:01 How to install tqdm 01:12 Your first progress bar: tqdm() and trange() 01:37 How to read a tqdm progress bar 02:13 tqdm desc and total parameters 02:44 tqdm bar_format, colour, and leave 03:27 Nested progress bars 03:56 Manual updates with update() 04:26 tqdm with multiprocessing (process_map) 04:55 tqdm with pandas: progress_apply and progress_map 05:36 tqdm not updating in Jupyter? How to fix it 06:15 Recap RESOURCES Full tqdm tutorial, with every code example plus compatibility fixes: https://www.datacamp.com/tutorial/tqdm-python?utm_medium=organic_social&utm_source=youtube&utm_campaign=000000_1-tqdm-python_2-b2c_3-all_5-bl_8-ogsl-yt_10-bau Write cleaner, faster Python with the course: Python Toolbox: https://www.datacamp.com/courses/python-toolbox?utm_medium=organic_social&utm_source=youtube&utm_campaign=000000_1-tqdm-python_2-b2c_3-all_7-le_8-ogsl-yt_10-bau Subscribe for more Python tutorials you can run along with. #Python #tqdm #DataCamp

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close