mirror of https://github.com/tqdm/tqdm.git
support pandas==1.3.0
This commit is contained in:
parent
4735e81cfa
commit
f4cc427dc4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue