Skip to content

Commit 1c1efe1

Browse files
committed
Do not import deprecate decorator on the top namespace
1 parent 2c4bbb6 commit 1c1efe1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@
4747
merge_ordered, merge_asof)
4848
from pandas.tools.pivot import pivot_table, crosstab
4949

50-
# deprecate tools.plotting, and directly imported scatter_matrix
50+
# deprecate tools.plotting, and scatter_matrix on the top namespace
5151
import pandas.tools.plotting
5252
from pandas.plotting import plot_params
53-
from pandas.util.decorators import deprecate
54-
scatter_matrix = deprecate('pandas.scatter_matrix', pandas.plotting.scatter_matrix,
55-
'pandas.plotting.scatter_matrix')
53+
# do not import deprecate to top namespace
54+
scatter_matrix = pandas.util.decorators.deprecate(
55+
'pandas.scatter_matrix', pandas.plotting.scatter_matrix,
56+
'pandas.plotting.scatter_matrix')
5657

5758
from pandas.tools.tile import cut, qcut
5859
from pandas.tools.util import to_numeric

0 commit comments

Comments
 (0)