You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.0.txt
+44-40
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,11 @@ Highlights include:
21
21
- Support for S3 handling now uses ``s3fs``, see :ref:`here <whatsnew_0200.api_breaking.s3>`
22
22
- Google BigQuery support now uses the ``pandas-gbq`` library, see :ref:`here <whatsnew_0200.api_breaking.gbq>`
23
23
- 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>`
25
24
25
+
.. warning::
26
+
27
+
Pandas has changed the internal structure and layout of the codebase.
28
+
This can affect imports that are not from the top-level ``pandas.*`` namespace, please see the changes :ref:`here <whatsnew_0200.privacy>`.
26
29
27
30
Check the :ref:`API Changes <whatsnew_0200.api_breaking>` and :ref:`deprecations <whatsnew_0200.deprecations>` before updating.
28
31
@@ -558,31 +561,6 @@ Using ``.iloc``. Here we will get the location of the 'A' column, then use *posi
558
561
df.iloc[[0, 2], df.columns.get_loc('A')]
559
562
560
563
561
-
.. _whatsnew_0200.api_breaking.deprecate_plotting
562
-
563
-
Deprecate .plotting
564
-
^^^^^^^^^^^^^^^^^^^
565
-
566
-
The ``pandas.tools.plotting`` module has been deprecated, in favor of the top level ``pandas.plotting`` module. All the public plotting functions are now available
567
-
from ``pandas.plotting`` (:issue:`12548`).
568
-
569
-
Furthermore, the top-level ``pandas.scatter_matrix`` and ``pandas.plot_params`` are deprecated.
570
-
Users can import these from ``pandas.plotting`` as well.
571
-
572
-
Previous script:
573
-
574
-
.. code-block:: python
575
-
576
-
pd.tools.plotting.scatter_matrix(df)
577
-
pd.scatter_matrix(df)
578
-
579
-
Should be changed to:
580
-
581
-
.. code-block:: python
582
-
583
-
pd.plotting.scatter_matrix(df)
584
-
585
-
586
564
.. _whatsnew_0200.api_breaking.deprecate_panel:
587
565
588
566
Deprecate Panel
@@ -1326,48 +1304,74 @@ Other API Changes
1326
1304
- ``DataFrame`` and ``Panel`` constructors with invalid input will now raise ``ValueError`` rather than ``pandas.core.common.PandasError``, if called with scalar inputs and not axes; The exception ``PandasError`` is removed as well. (:issue:`15541`)
1327
1305
- The exception ``pandas.core.common.AmbiguousIndexError`` is removed as it is not referenced (:issue:`15541`)
1328
1306
1329
-
.. _whatsnew_0200.develop:
1307
+
.. _whatsnew_0200.privacy:
1330
1308
1331
-
Development Changes
1332
-
~~~~~~~~~~~~~~~~~~~
1309
+
Privacy Changes
1310
+
~~~~~~~~~~~~~~~
1333
1311
1334
-
.. _whatsnew_0200.develop.privacy:
1312
+
.. _whatsnew_0200.privacy.extensions:
1335
1313
1336
1314
Modules Privacy Has Changed
1337
1315
^^^^^^^^^^^^^^^^^^^^^^^^^^^
1338
1316
1339
1317
Some formerly public python/c/c++/cython extension modules have been moved and/or renamed. These are all removed from the public API.
1340
-
Further more, the ``pandas.core``, ``pandas.io``, and ``pandas.util`` top-level modules are now considered to be PRIVATE.
1341
-
If indicated, a deprecation warning will be issued if you reference that module. (:issue:`12588`)
1318
+
Furthermore, the ``pandas.core``, ``pandas.io``, and ``pandas.util`` top-level modules are now considered to be PRIVATE.
1319
+
If indicated, a deprecation warning will be issued if you reference theses modules. (:issue:`12588`)
1342
1320
1343
1321
.. csv-table::
1344
1322
:header: "Previous Location", "New Location", "Deprecated"
- The function :func:`~pandas.api.type.union_categoricals` is now importable from ``pandas.api.types``, formerly from ``pandas.types.concat`` (:issue:`15998`)
1366
1345
1367
-
.. _whatsnew_0200.develop.other:
1346
+
.. _whatsnew_0200.privacy.deprecate_plotting
1368
1347
1369
-
Other Changes
1370
-
^^^^^^^^^^^^^
1348
+
Deprecate .plotting
1349
+
^^^^^^^^^^^^^^^^^^^
1350
+
1351
+
The ``pandas.tools.plotting`` module has been deprecated, in favor of the top level ``pandas.plotting`` module. All the public plotting functions are now available
1352
+
from ``pandas.plotting`` (:issue:`12548`).
1353
+
1354
+
Furthermore, the top-level ``pandas.scatter_matrix`` and ``pandas.plot_params`` are deprecated.
1355
+
Users can import these from ``pandas.plotting`` as well.
1356
+
1357
+
Previous script:
1358
+
1359
+
.. code-block:: python
1360
+
1361
+
pd.tools.plotting.scatter_matrix(df)
1362
+
pd.scatter_matrix(df)
1363
+
1364
+
Should be changed to:
1365
+
1366
+
.. code-block:: python
1367
+
1368
+
pd.plotting.scatter_matrix(df)
1369
+
1370
+
1371
+
.. _whatsnew_0200.privacy.development:
1372
+
1373
+
Other Developement Changes
1374
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
1371
1375
1372
1376
- Building pandas for development now requires ``cython >= 0.23`` (:issue:`14831`)
1373
1377
- Require at least 0.23 version of cython to avoid problems with character encodings (:issue:`14699`)
0 commit comments