Skip to content

Commit

Permalink
pandas:deprecate Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 31, 2020
1 parent 1fe6934 commit 68f09ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tqdm/std.py
Expand Up @@ -21,7 +21,7 @@
from time import time
# For parallelism safety
import threading as th
from warnings import warn
from warnings import warn, catch_warnings, simplefilter

__author__ = {"github.com/": ["noamraph", "obiwanus", "kmike", "hadim",
"casperdcl", "lrq3000"]}
Expand Down Expand Up @@ -655,8 +655,10 @@ def pandas(tclass, *targs, **tkwargs):
from pandas.core.frame import DataFrame
from pandas.core.series import Series
try:
from pandas import Panel
except ImportError: # TODO: pandas>0.25.2
with catch_warnings():
simplefilter("ignore", category=FutureWarning)
from pandas import Panel
except ImportError: # TODO: pandas>1.0.0
Panel = None
try: # pandas>=1.0.0
from pandas.core.window.rolling import _Rolling_and_Expanding
Expand Down

0 comments on commit 68f09ff

Please sign in to comment.