Skip to content

Commit b5328a2

Browse files
sinhrksjorisvandenbossche
authored andcommitted
addd whatsnew
1 parent ea757d4 commit b5328a2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

doc/source/whatsnew/v0.20.0.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Highlights include:
2121
- Support for S3 handling now uses ``s3fs``, see :ref:`here <whatsnew_0200.api_breaking.s3>`
2222
- Google BigQuery support now uses the ``pandas-gbq`` library, see :ref:`here <whatsnew_0200.api_breaking.gbq>`
2323
- Switched the test framework to use `pytest <http://doc.pytest.org/en/latest>`__ (:issue:`13097`)
24+
- The ``pandas.tools.plotting`` module has been deprecated, moved to ``pandas.plotting``. See :ref:`here <whatsnew_0200.api_breaking.plotting>` (:issue:`12548`)
2425

2526

2627
Check the :ref:`API Changes <whatsnew_0200.api_breaking>` and :ref:`deprecations <whatsnew_0200.deprecations>` before updating.
@@ -557,6 +558,32 @@ Using ``.iloc``. Here we will get the location of the 'A' column, then use *posi
557558
df.iloc[[0, 2], df.columns.get_loc('A')]
558559

559560

561+
.. _whatsnew_0200.api_breaking.deprecate_plotting
562+
563+
Deprecate .plotting
564+
^^^^^^^^^^^^^^^^^^^
565+
566+
``pandas.tools.plotting`` module has been deprecated, moving directory under the
567+
top namespace ``pandas.plotting``. All the public plotting functions should be available
568+
from ``pandas.plotting``.
569+
570+
Also, ``scatter_matrix`` function imported directly under ``pandas`` namespace is also deprecated.
571+
Users shoud use ``pandas.plotting.scatter_matrix`` instead.
572+
573+
Previous script:
574+
575+
.. code-block:: python
576+
577+
pd.tools.plotting.scatter_matrix(df)
578+
pd.scatter_matrix(df)
579+
580+
Should be changed to:
581+
582+
.. code-block:: python
583+
584+
pd.plotting.scatter_matrix(df)
585+
586+
560587
.. _whatsnew_0200.api_breaking.deprecate_panel:
561588

562589
Deprecate Panel

0 commit comments

Comments
 (0)