Skip to content

Commit 2cf1f61

Browse files
author
dhirschf
committed
Add shim modules with deprecation warnings to ensure backward compatibility
The following shim modules are included: - `pandas.computation` - `pandas.tools.hashing` - `pandas.types` Fixes pandas-dev#16138
1 parent d50b162 commit 2cf1f61

21 files changed

+50
-0
lines changed

pandas/computation/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import warnings
2+
3+
4+
warnings.warn(
5+
"The pandas.computation module is deprecated and will be removed in a future "
6+
"version. Please import from the pandas.core.computation module instead.",
7+
FutureWarning, stacklevel=2
8+
)
9+
10+
11+
from . import (
12+
align, api, common, engines, eval,
13+
expr, expressions, ops, pytables, scope
14+
)

pandas/computation/align.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.align import *

pandas/computation/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.api import *

pandas/computation/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.common import *

pandas/computation/engines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.engines import *

pandas/computation/eval.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.eval import *

pandas/computation/expr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.expr import *

pandas/computation/expressions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.expressions import *

pandas/computation/ops.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.ops import *

pandas/computation/pytables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.pytables import *

0 commit comments

Comments
 (0)