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

+14
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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.align import *

pandas/computation/api.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.api import *

pandas/computation/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.common import *

pandas/computation/engines.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.engines import *

pandas/computation/eval.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.eval import *

pandas/computation/expr.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.expr import *

pandas/computation/expressions.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.expressions import *

pandas/computation/ops.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.ops import *

pandas/computation/pytables.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.pytables import *

pandas/computation/scope.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.computation.scope import *

pandas/tools/hashing/__init__.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import warnings
2+
3+
4+
warnings.warn(
5+
"The pandas.types module is deprecated and will be removed in a future "
6+
"version. Please import from the pandas.core.dtypes module instead.",
7+
FutureWarning, stacklevel=2
8+
)
9+
10+
from pandas.util.hashing import *

pandas/types/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import warnings
2+
3+
4+
warnings.warn(
5+
"The pandas.types module is deprecated and will be removed in a future "
6+
"version. Please import from the pandas.core.dtypes module instead.",
7+
FutureWarning, stacklevel=2
8+
)

pandas/types/api.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.dtypes.api import *

pandas/types/cast.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.dtypes.cast import *

pandas/types/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.dtypes.common import *

pandas/types/concat.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.dtypes.concat import *

pandas/types/dtypes.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.dtypes.dtypes import *

pandas/types/generic.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.dtypes.generic import *

pandas/types/inference.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.dtypes.inference import *

pandas/types/missing.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pandas.core.dtypes.missing import *

0 commit comments

Comments
 (0)