Skip to content

tqdm_notebook and tqdm.pandas fails when given *total* argument. #364

@karhohs

Description

@karhohs

My code:

import tqdm
df = pandas dataframe with 1000 rows
tqdm.tqdm_notebook().pandas(total="1000")
df.progress_apply(myfunction, axis=1)

The error:

C:\pythonstuff\lib\site-packages\tqdm_tqdm.py in inner(df, func, *args, **kwargs)
511 deprecated_t[0] = None
512 else:
--> 513 t = tclass(*targs, total=total, **tkwargs)
514
515 # Define bar updating wrapper
TypeError: type object got multiple values for keyword argument 'total'

Without specifying total it seems to work, but I don't get a percentage from the output. Also there is an extra bar.

tqdm_notebook_pandas

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions