Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flag to suppress from pandas import Panel warning. #1094

Closed
SebastianoX opened this issue Dec 7, 2020 · 6 comments · Fixed by #1127
Closed

add flag to suppress from pandas import Panel warning. #1094

SebastianoX opened this issue Dec 7, 2020 · 6 comments · Fixed by #1127
Assignees
Labels
c1-quick 🕐 Complexity low eol ☠ Deprecations that are wont-fix candidates submodule ⊂ Periphery/subclasses to-merge ↰ Imminent
Projects
Milestone

Comments

@SebastianoX
Copy link

Please add flag to suppress the pandas Panel warning:

/home/.../lib/python3.7/site-packages/tqdm/std.py:699: FutureWarning: The Panel class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version
  from pandas import Panel

This repeats itself all over the place, when tqdm is called from within a framework that iterates over a page that imports tqdm under the hood!

Also making tqdm pandas or third party libraries agnostic would be good. This would relieve some heavy duty from developers.

@SebastianoX
Copy link
Author

(this issue is related to #824 but it is not looking into the same solution)

@sandrotosi
Copy link

this also makes the tests fail after the introduction of -W=error flag to pytest

casperdcl added a commit that referenced this issue Feb 18, 2021
@casperdcl
Copy link
Sponsor Member

casperdcl commented Feb 18, 2021

-W=error isn't causing any failures for me. In any case pandas>=1.2.0 doesn't cause this error anyway (pandas-dev/pandas#37983). Now that it's fixed, I'm ok with adding an extra suppression just for those still using older versions.

@casperdcl casperdcl self-assigned this Feb 18, 2021
@casperdcl casperdcl added c1-quick 🕐 Complexity low eol ☠ Deprecations that are wont-fix candidates submodule ⊂ Periphery/subclasses to-merge ↰ Imminent labels Feb 18, 2021
casperdcl added a commit that referenced this issue Feb 18, 2021
@sandrotosi
Copy link

in debian we still have 1.1.5, that's why -w=error cases the failures

@casperdcl
Copy link
Sponsor Member

Warning will disappear using either tqdm>=4.57.0 (#1127) or pandas>=1.2.0.

@sandrotosi
Copy link

cool, i'll upgrade to 4.57.0 then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c1-quick 🕐 Complexity low eol ☠ Deprecations that are wont-fix candidates submodule ⊂ Periphery/subclasses to-merge ↰ Imminent
Projects
Casper
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants