diff --git a/.meta/.readme.rst b/.meta/.readme.rst index 20eb7c95..45e718f5 100644 --- a/.meta/.readme.rst +++ b/.meta/.readme.rst @@ -1251,7 +1251,7 @@ Citation information: |DOI| .. |GitHub-Updated| image:: https://img.shields.io/github/last-commit/tqdm/tqdm/master.svg?logo=github&logoColor=white&label=pushed :target: https://github.com/tqdm/tqdm/pulse .. |Gift-Casper| image:: https://img.shields.io/badge/dynamic/json.svg?color=ff69b4&label=gifts%20received&prefix=%C2%A3&query=%24..sum&url=https%3A%2F%2Fcaspersci.uk.to%2Fgifts.json - :target: https://www.cdcl.ml/sponsor + :target: https://cdcl.ml/sponsor .. |Versions| image:: https://img.shields.io/pypi/v/tqdm.svg :target: https://tqdm.github.io/releases .. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/tqdm.svg?label=pypi%20downloads&logo=PyPI&logoColor=white diff --git a/README.rst b/README.rst index a149265a..39926d61 100644 --- a/README.rst +++ b/README.rst @@ -1470,7 +1470,7 @@ Citation information: |DOI| .. |GitHub-Updated| image:: https://img.shields.io/github/last-commit/tqdm/tqdm/master.svg?logo=github&logoColor=white&label=pushed :target: https://github.com/tqdm/tqdm/pulse .. |Gift-Casper| image:: https://img.shields.io/badge/dynamic/json.svg?color=ff69b4&label=gifts%20received&prefix=%C2%A3&query=%24..sum&url=https%3A%2F%2Fcaspersci.uk.to%2Fgifts.json - :target: https://www.cdcl.ml/sponsor + :target: https://cdcl.ml/sponsor .. |Versions| image:: https://img.shields.io/pypi/v/tqdm.svg :target: https://tqdm.github.io/releases .. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/tqdm.svg?label=pypi%20downloads&logo=PyPI&logoColor=white diff --git a/tqdm/std.py b/tqdm/std.py index a320e35c..08cd00d3 100644 --- a/tqdm/std.py +++ b/tqdm/std.py @@ -791,8 +791,12 @@ class tqdm(Comparable): " Use keyword arguments instead.", fp_write=getattr(t.fp, 'write', sys.stderr.write)) + try: # pandas>=1.3.0 + from pandas.core.common import is_builtin_func + except ImportError: + is_builtin_func = df._is_builtin_func try: - func = df._is_builtin_func(func) + func = is_builtin_func(func) except TypeError: pass