allow custom pandas total

- fixes #364
- TODO: unit test
This commit is contained in:
Casper da Costa-Luis 2018-04-12 10:05:49 +00:00 committed by Casper da Costa-Luis
parent a0d64a9914
commit b502f0d961
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ class tqdm(object):
"""
# Precompute total iterations
total = getattr(df, 'ngroups', None)
total = tkwargs.pop("total", getattr(df, 'ngroups', None))
if total is None: # not grouped
if df_function == 'applymap':
total = df.size