How to fix tqdm progress_apply for pandas in Jupyter?

后端 未结 5 1993
别那么骄傲
别那么骄傲 2020-12-31 07:19

Don\'t really understand is it a mistake or just my local problem, still have some issues with using tqdm progress bars with progress_apply in Jupyter.

5条回答
  •  [愿得一人]
    2020-12-31 07:36

    The following is working for me:

    from tqdm import tqdm
    tqdm.pandas()
    keywords_df['keyword'] = keywords_df['keywird'].progress_apply(lambda x: x.replace('*',''))
    

提交回复
热议问题