Add deprecation warning that isn't filtered by Python

Description

Example using pandas:

So everytime I use the ".ix()" command, there is a "DeprecationWarning" that pops up which also provides me to functions to use.

Environment

None

Activity

Show:
Kimyen Truong
December 19, 2018, 10:56 PM

, is there a way to annotate a @deprecated to not print warnings?

Thomas Yu
December 19, 2018, 11:01 PM

Yes, I think there is…

  • “action”:
    A warning filter used to activate or not the deprecation warning.
    Can be one of “error”, “ignore”, “always”, “default”, “module”, or “once”.
    By default the deprecation warning is always emitted (the value is “always”).

Will try: action=ignore

Kimyen Truong
December 19, 2018, 11:03 PM

Tom, when you have time, can you link to the documentation where you find the information above? It’s good to track where this is documented, so that anyone come in later can find more information related to deprecated.

Thomas Yu
December 19, 2018, 11:47 PM
Ziming Dong
January 16, 2019, 6:09 PM

Verified seeing deprecation messages when attempting to call deprecated methods

Assignee

Thomas Yu

Reporter

Thomas Yu

Labels

Validator

Ziming Dong

Development Area

None

Release Version History

None

Sprint

None

Fix versions

Priority

Major
Configure