diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py index ab42ed81..95e07b7d 100755 --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -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