Skip to content

Commit ea757d4

Browse files
sinhrksjorisvandenbossche
authored andcommitted
Do not import deprecate decorator on the top namespace
1 parent 859ad24 commit ea757d4

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
@@ -50,12 +50,13 @@
5050
merge_ordered, merge_asof)
5151
from pandas.tools.pivot import pivot_table, crosstab
5252

53-
# deprecate tools.plotting, and directly imported scatter_matrix
53+
# deprecate tools.plotting, and scatter_matrix on the top namespace
5454
import pandas.tools.plotting
5555
from pandas.plotting import plot_params
56-
from pandas.util.decorators import deprecate
57-
scatter_matrix = deprecate('pandas.scatter_matrix', pandas.plotting.scatter_matrix,
58-
'pandas.plotting.scatter_matrix')
56+
# do not import deprecate to top namespace
57+
scatter_matrix = pandas.util.decorators.deprecate(
58+
'pandas.scatter_matrix', pandas.plotting.scatter_matrix,
59+
'pandas.plotting.scatter_matrix')
5960

6061
from pandas.tools.tile import cut, qcut
6162
from pandas.tools.util import to_numeric

0 commit comments

Comments
 (0)