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
After installing pandas-datareader, you can easily change your imports:
23
23
24
-
.. code-block:: Python
24
+
.. code-block:: python
25
+
26
+
from pandas.io import data, wb
27
+
28
+
becomes
29
+
30
+
.. code-block:: python
25
31
26
-
from pandas.io import data, wb # becomes
27
32
from pandas_datareader import data, wb
28
33
29
34
Highlights include:
@@ -53,44 +58,60 @@ Check the :ref:`API Changes <whatsnew_0170.api>` and :ref:`deprecations <whatsne
53
58
New features
54
59
~~~~~~~~~~~~
55
60
56
-
- ``merge`` now accepts the argument ``indicator`` which adds a Categorical-type column (by default called ``_merge``) to the output object that takes on the values (:issue:`8790`)
The new implementation allows for having a single-timezone across all rows, with operations in a performant manner.
71
71
72
-
For more, see the :ref:`updated docs <merging.indicator>`
72
+
.. ipython:: python
73
73
74
-
- ``DataFrame`` has gained the ``nlargest`` and ``nsmallest`` methods (:issue:`10393`)
75
-
- SQL io functions now accept a SQLAlchemy connectable. (:issue:`7877`)
76
-
- Enable writing complex values to HDF stores when using table format (:issue:`10447`)
77
-
- Enable reading gzip compressed files via URL, either by explicitly setting the compression parameter or by inferring from the presence of the HTTP Content-Encoding header in the response (:issue:`8685`)
78
-
- Add a ``limit_direction`` keyword argument that works with ``limit`` to enable ``interpolate`` to fill ``NaN`` values forward, backward, or both (:issue:`9218` and :issue:`10420`)
@@ -286,6 +307,46 @@ has been changed to make this keyword unnecessary - the change is shown below.
286
307
Other enhancements
287
308
^^^^^^^^^^^^^^^^^^
288
309
310
+
311
+
- ``merge`` now accepts the argument ``indicator`` which adds a Categorical-type column (by default called ``_merge``) to the output object that takes on the values (:issue:`8790`)
For more, see the :ref:`updated docs <merging.indicator>`
328
+
329
+
- ``DataFrame`` has gained the ``nlargest`` and ``nsmallest`` methods (:issue:`10393`)
330
+
- SQL io functions now accept a SQLAlchemy connectable. (:issue:`7877`)
331
+
- Enable writing complex values to HDF stores when using table format (:issue:`10447`)
332
+
- Enable reading gzip compressed files via URL, either by explicitly setting the compression parameter or by inferring from the presence of the HTTP Content-Encoding header in the response (:issue:`8685`)
333
+
- Add a ``limit_direction`` keyword argument that works with ``limit`` to enable ``interpolate`` to fill ``NaN`` values forward, backward, or both (:issue:`9218` and :issue:`10420`)
334
+
335
+
.. ipython:: python
336
+
337
+
ser = pd.Series([np.nan, np.nan, 5, np.nan, np.nan, np.nan, 13])
338
+
ser.interpolate(limit=1, limit_direction='both')
339
+
340
+
- Round DataFrame to variable number of decimal places (:issue:`10568`).
- Line and kde plot with ``subplots=True`` now uses default colors, not all black. Specify ``color='k'`` to draw all lines in black (:issue:`9894`)
849
861
- Calling the ``.value_counts()`` method on a Series with ``categorical`` dtype now returns a Series with a ``CategoricalIndex`` (:issue:`10704`)
850
-
- Allow passing `kwargs` to the interpolation methods (:issue:`10378`).
851
862
- The metadata properties of subclasses of pandas objects will now be serialized (:issue:`10553`).
852
863
- ``groupby`` using ``Categorical`` follows the same rule as ``Categorical.unique`` described above (:issue:`10508`)
853
-
- Improved error message when concatenating an empty iterable of dataframes (:issue:`9157`)
854
-
- When constructing ``DataFrame`` with an array of ``complex64`` dtype that meant the corresponding column was automatically promoted to the ``complex128`` dtype. Pandas will now preserve the itemsize of the input for complex data (:issue:`10952`)
864
+
- When constructing ``DataFrame`` with an array of ``complex64`` dtype previously meant the corresponding column
865
+
was automatically promoted to the ``complex128`` dtype. Pandas will now preserve the itemsize of the input for complex data (:issue:`10952`)
855
866
856
867
- ``NaT``'s methods now either raise ``ValueError``, or return ``np.nan`` or ``NaT`` (:issue:`9513`)
857
868
@@ -869,8 +880,6 @@ Other API Changes
869
880
Deprecations
870
881
^^^^^^^^^^^^
871
882
872
-
.. note:: These indexing function have been deprecated in the documentation since 0.11.0.
873
-
874
883
- For ``Series`` the following indexing functions are deprecated (:issue:`10177`).
.. note:: These indexing function have been deprecated in the documentation since 0.11.0.
904
+
894
905
- ``Categorical.name`` was deprecated to make ``Categorical`` more ``numpy.ndarray`` like. Use ``Series(cat, name="whatever")`` instead (:issue:`10482`).
895
906
- Setting missing values (NaN) in a ``Categorical``'s ``categories`` will issue a warning (:issue:`10748`). You can still have missing values in the ``values``.
896
907
- ``drop_duplicates`` and ``duplicated``'s ``take_last`` keyword was deprecated in favor of ``keep``. (:issue:`6511`, :issue:`8505`)
@@ -908,7 +919,6 @@ Deprecations
908
919
Removal of prior version deprecations/changes
909
920
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
910
921
911
-
- Remove use of some deprecated numpy comparison operations, mainly in tests. (:issue:`10569`)
912
922
- Removal of ``na_last`` parameters from ``Series.order()`` and ``Series.sort()``, in favor of ``na_position``, xref (:issue:`5231`)
913
923
- Remove of ``percentile_width`` from ``.describe()``, in favor of ``percentiles``. (:issue:`7088`)
914
924
- Removal of ``colSpace`` parameter from ``DataFrame.to_string()``, in favor of ``col_space``, circa 0.8.0 version.
@@ -1089,3 +1099,4 @@ Bug Fixes
1089
1099
- Bug in ``Index`` arithmetic may result in incorrect class (:issue:`10638`)
1090
1100
- Bug in ``date_range`` results in empty if freq is negative annualy, quarterly and monthly (:issue:`11018`)
1091
1101
- Bug in ``DatetimeIndex`` cannot infer negative freq (:issue:`11018`)
1102
+
- Remove use of some deprecated numpy comparison operations, mainly in tests. (:issue:`10569`)
0 commit comments