Skip to content

Commit fe8b918

Browse files
committed
addd whatsnew
1 parent 1c1efe1 commit fe8b918

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

doc/source/whatsnew/v0.20.0.txt

+26
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Highlights include:
1111

1212
- Building pandas for development now requires ``cython >= 0.23`` (:issue:`14831`)
1313
- The ``.ix`` indexer has been deprecated, see :ref:`here <whatsnew_0200.api_breaking.deprecate_ix>`
14+
- The ``pandas.tools.plotting`` module has been deprecated, moved to ``pandas.plotting``. See :ref:`here <whatsnew_0200.api_breaking.plotting>` (:issue:`12548`)
1415

1516
Check the :ref:`API Changes <whatsnew_0200.api_breaking>` and :ref:`deprecations <whatsnew_0200.deprecations>` before updating.
1617

@@ -194,6 +195,31 @@ Using ``.iloc``. Here we will get the location of the 'A' column, then use *posi
194195
df.iloc[[0, 2], df.columns.get_loc('A')]
195196

196197

198+
.. _whatsnew_0200.api_breaking.deprecate_plotting
199+
200+
Deprecate .plotting
201+
^^^^^^^^^^^^^^^^^^^
202+
203+
``pandas.tools.plotting`` module has been deprecated, moving directory under the
204+
top namespace ``pandas.plotting``. All the public plotting functions should be available
205+
from ``pandas.plotting``.
206+
207+
Also, ``scatter_matrix`` function imported directly under ``pandas`` namespace is also deprecated.
208+
Users shoud use ``pandas.plotting.scatter_matrix`` instead.
209+
210+
Previous script:
211+
212+
.. code-block:: python
213+
214+
pd.tools.plotting.scatter_matrix(df)
215+
pd.scatter_matrix(df)
216+
217+
Should be changed to:
218+
219+
.. code-block:: python
220+
221+
pd.plotting.scatter_matrix(df)
222+
197223
.. _whatsnew_0200.api_breaking.index_map
198224

199225
Map on Index types now return other Index types

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ def pxd(name):
680680
'tests/data/*.html',
681681
'tests/data/html_encoding/*.html',
682682
'tests/json/data/*.json'],
683-
'pandas.plotting': ['tests/data/*.csv'],
684683
'pandas.tools': ['tests/data/*.csv'],
685684
'pandas.tests': ['data/*.csv'],
686685
'pandas.tests.formats': ['data/*.csv'],

0 commit comments

Comments
 (0)