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
+72-58Lines changed: 72 additions & 58 deletions
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
@@ -489,7 +492,7 @@ Other Enhancements
489
492
490
493
491
494
- ``TimedeltaIndex`` now has a custom datetick formatter specifically designed for nanosecond level precision (:issue:`8711`)
492
-
- ``pd.types.concat.union_categoricals`` gained the ``ignore_ordered`` argument to allow ignoring the ordered attribute of unioned categoricals (:issue:`13410`). See the :ref:`categorical union docs <categorical.union>` for more information.
495
+
- ``pd.api.types.union_categoricals`` gained the ``ignore_ordered`` argument to allow ignoring the ordered attribute of unioned categoricals (:issue:`13410`). See the :ref:`categorical union docs <categorical.union>` for more information.
493
496
- ``DataFrame.to_latex()`` and ``DataFrame.to_string()`` now allow optional header aliases. (:issue:`15536`)
494
497
- Re-enable the ``parse_dates`` keyword of ``pd.read_excel()`` to parse string columns as dates (:issue:`14326`)
495
498
- Added ``.empty`` property to subclasses of ``Index``. (:issue:`15270`)
@@ -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
@@ -1026,34 +1004,6 @@ New Behavior:
1026
1004
In [11]: index.memory_usage(deep=True)
1027
1005
Out[11]: 260
1028
1006
1029
-
.. _whatsnew_0200.api_breaking.extensions:
1030
-
1031
-
Extension Modules Moved
1032
-
^^^^^^^^^^^^^^^^^^^^^^^
1033
-
1034
-
Some formerly public c/c++/cython extension modules have been moved and/or renamed. These are all removed from the public API.
1035
-
If indicated, a deprecation warning will be issued if you reference that module. (:issue:`12588`)
1036
-
1037
-
.. csv-table::
1038
-
:header: "Previous Location", "New Location", "Deprecated"
- ``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`)
1355
1305
- The exception ``pandas.core.common.AmbiguousIndexError`` is removed as it is not referenced (:issue:`15541`)
1356
1306
1357
-
.. _whatsnew_0200.develop:
1307
+
.. _whatsnew_0200.privacy:
1308
+
1309
+
Privacy Changes
1310
+
~~~~~~~~~~~~~~~
1311
+
1312
+
.. _whatsnew_0200.privacy.extensions:
1313
+
1314
+
Modules Privacy Has Changed
1315
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
1316
+
1317
+
Some formerly public python/c/c++/cython extension modules have been moved and/or renamed. These are all removed from the public API.
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`)
1320
+
1321
+
.. csv-table::
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`)
1345
+
1346
+
.. _whatsnew_0200.privacy.deprecate_plotting
1347
+
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:
1358
1372
1359
-
Development Changes
1360
-
~~~~~~~~~~~~~~~~~~~
1373
+
Other Developement Changes
1374
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
1361
1375
1362
1376
- Building pandas for development now requires ``cython >= 0.23`` (:issue:`14831`)
1363
1377
- Require at least 0.23 version of cython to avoid problems with character encodings (:issue:`14699`)
0 commit comments