Skip to content

Function tqdm_notebook has no attribute 'pandas' (Jupyter) #419

@sortafreel

Description

@sortafreel

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.

First try:

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

Output (without any bars):
AttributeError: 'function' object has no attribute 'pandas'

Second try:

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

Output:
Two bars (need one). First bar is empty (0it [00:00, ?it/s]), second is OK.

Any ideas how to change progress_apply text and display bar without empty initialization bar? :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions