-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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 shim modules with deprecation warnings to ensure backward compat #16140
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import warnings | ||
|
||
|
||
warnings.warn( | ||
"The pandas.computation module is deprecated and will be removed in a future " | ||
"version. Please import from the pandas.core.computation module instead.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So the "Please import from the pandas.core.computation module instead." should be removed IMO. |
||
FutureWarning, stacklevel=2 | ||
) | ||
|
||
|
||
from . import ( | ||
align, api, common, engines, eval, | ||
expr, expressions, ops, pytables, scope | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.align import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.api import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.common import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.engines import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.eval import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.expr import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.expressions import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.ops import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.pytables import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.computation.scope import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import warnings | ||
|
||
|
||
warnings.warn( | ||
"The pandas.tools.hashimg module is deprecated and will be removed in a " | ||
"future version. Please import from the pandas.util.hashing module instead.", | ||
FutureWarning, stacklevel=2 | ||
) | ||
|
||
from pandas.util.hashing import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import warnings | ||
|
||
|
||
warnings.warn( | ||
"The pandas.types module is deprecated and will be removed in a future " | ||
"version. Please import from the pandas.core.dtypes module instead.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here as well, the "Please import from the pandas.core.dtypes module instead." should be removed. There is part of these functions available in |
||
FutureWarning, stacklevel=2 | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.dtypes.api import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.dtypes.cast import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.dtypes.common import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.dtypes.concat import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.dtypes.dtypes import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.dtypes.generic import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.dtypes.inference import * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pandas.core.dtypes.missing import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will trigger the deprecation warning already (so showing it on just importing pandas), so we have to have a workaround this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can possibly be solved by using the
_DeprecatedModule
some lines below