How to use tqdm with pandas in a jupyter notebook?

前端 未结 4 1235
走了就别回头了
走了就别回头了 2020-12-29 23:50

I\'m doing some analysis with pandas in a jupyter notebook and since my apply function takes a long time I would like to see a progress bar. Through this post here I found t

4条回答
  •  不知归路
    2020-12-30 00:18

    If you want to use more than 1 CPU for that slow apply step, consider using swifter. As a bonus, swifter automatically enables a tqdm progress bar on the apply step. To customize the bar description, use df.swifter.progress_bar(enable=True, desc='bar description').apply(...)

提交回复
热议问题