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/release.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,10 @@ users upgrade to this version.
48
48
49
49
Highlights include:
50
50
51
-
Highlights include:
52
-
53
51
- Window functions are now methods on ``.groupby`` like objects, see :ref:`here <whatsnew_0180.enhancements.moments>`.
54
-
- API breaking ``.resample`` changes to make it more ``.groupby`` like, see :ref:`here <whatsnew_0180.resample>`.
52
+
- ``pd.test()`` top-level nose test runner is available (:issue:`4327`)
53
+
- Adding support for a ``RangeIndex`` as a specialized form of the ``Int64Index`` for memory savings, see :ref:`here <whatsnew_0180.enhancements.rangeindex>`.
54
+
- API breaking ``.resample`` changes to make it more ``.groupby`` like, see :ref:`here <whatsnew_0180.breaking.resample>`.
55
55
56
56
See the :ref:`v0.18.0 Whatsnew <whatsnew_0180>` overview for an extensive list
57
57
of all enhancements and bugs that have been fixed in 0.17.1.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.0.txt
+10-13
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Highlights include:
20
20
- Window functions are now methods on ``.groupby`` like objects, see :ref:`here <whatsnew_0180.enhancements.moments>`.
21
21
- ``pd.test()`` top-level nose test runner is available (:issue:`4327`)
22
22
- Adding support for a ``RangeIndex`` as a specialized form of the ``Int64Index`` for memory savings, see :ref:`here <whatsnew_0180.enhancements.rangeindex>`.
23
-
- API breaking ``.resample`` changes to make it more ``.groupby`` like, see :ref:`here <whatsnew_0180.resample>`.
23
+
- API breaking ``.resample`` changes to make it more ``.groupby`` like, see :ref:`here <whatsnew_0180.breaking.resample>`.
24
24
25
25
Check the :ref:`API Changes <whatsnew_0180.api_breaking>` and :ref:`deprecations <whatsnew_0180.deprecations>` before updating.
26
26
@@ -401,8 +401,7 @@ other anchored offsets like ``MonthBegin`` and ``YearBegin``.
401
401
Resample API
402
402
^^^^^^^^^^^^
403
403
404
-
Like the change in the window functions API :ref:`above <whatsnew_0180.enhancements.moments>`, ``.resample(...)`` is changing to have
405
-
a more groupby-like API. (:issue:`11732`, :issue:`12702`).
404
+
Like the change in the window functions API :ref:`above <whatsnew_0180.enhancements.moments>`, ``.resample(...)`` is changing to have a more groupby-like API. (:issue:`11732`, :issue:`12702`).
406
405
407
406
.. ipython:: python
408
407
@@ -415,9 +414,8 @@ a more groupby-like API. (:issue:`11732`, :issue:`12702`).
415
414
416
415
**Previous API**:
417
416
418
-
You would write a resampling operation that immediately evaluates.
419
-
420
-
This defaults to ``how='mean'``
417
+
You would write a resampling operation that immediately evaluates. If a ``how`` parameter was not provided, it
418
+
would default to ``how='mean'``.
421
419
422
420
.. code-block:: python
423
421
@@ -445,7 +443,7 @@ You could also specify a ``how`` directly
445
443
446
444
.. warning::
447
445
448
-
This new API for resample includes some internal changes that previous API (pre 0.18.0), to work with a deprecation warning in most cases. Since the returned resample is now a deferred object, and not immediately evaluated (as before). We can intercept operations and just do what the (pre 0.18.0) API did (with a warning). Here is a typical use case:
446
+
This new API for resample includes some internal changes for the prior-to-0.18.0 API, to work with a deprecation warning in most cases, as the resample operation returns a deferred object. We can intercept operations and just do what the (pre 0.18.0) API did (with a warning). Here is a typical use case:
449
447
450
448
.. code-block:: python
451
449
@@ -474,7 +472,7 @@ You could also specify a ``how`` directly
474
472
475
473
**New API**:
476
474
477
-
Now, you write ``.resample`` as a 2-stage operation like groupby, which
475
+
Now, you can write ``.resample`` as a 2-stage operation like groupby, which
478
476
yields a ``Resampler``.
479
477
480
478
.. ipython:: python
@@ -485,7 +483,7 @@ yields a ``Resampler``.
485
483
Downsampling
486
484
''''''''''''
487
485
488
-
You can then use this object to perform similar operations.
486
+
You can then use this object to perform operations.
489
487
These are downsampling operations (going from a lower frequency to a higher one).
490
488
491
489
.. ipython:: python
@@ -635,16 +633,15 @@ Other API Changes
635
633
In [2]: s.between_time('20150101 07:00:00','20150101 09:00:00')
636
634
ValueError: Cannot convert arg ['20150101 07:00:00'] to a time.
637
635
638
-
- ``.memory_usage`` now includes values in the index, as does memory_usage in ``.info`` (:issue:`11597`)
636
+
- ``.memory_usage()`` now includes values in the index, as does memory_usage in ``.info`` (:issue:`11597`)
639
637
640
638
- ``DataFrame.to_latex()`` now supports non-ascii encodings (eg utf-8) in Python 2 with the parameter ``encoding`` (:issue:`7061`)
641
639
642
640
- ``pandas.merge()`` and ``DataFrame.merge()`` will show a specific error message when trying to merge with an object that is not of type ``DataFrame`` or a subclass (:issue:`12081`)
643
641
644
642
- ``DataFrame.unstack`` and ``Series.unstack`` now take ``fill_value`` keyword to allow direct replacement of missing values when an unstack results in missing values in the resulting ``DataFrame``. As an added benefit, specifying ``fill_value`` will preserve the data type of the original stacked data. (:issue:`9746`)
645
643
646
-
- As part of the new API for :ref:`window functions <whatsnew_0180.enhancements.moments>` and :ref:`resampling <whatsnew_0180.resample>`, aggregation functions have been
647
-
clarified, raising more informative error messages on invalid aggregations. (:issue:`9052`). A full set of examples are presented in :ref:`groupby <groupby.aggregation>`.
644
+
- As part of the new API for :ref:`window functions <whatsnew_0180.enhancements.moments>` and :ref:`resampling <whatsnew_0180.breaking.resample>`, aggregation functions have been clarified, raising more informative error messages on invalid aggregations. (:issue:`9052`). A full set of examples are presented in :ref:`groupby <groupby.aggregation>`.
648
645
649
646
.. _whatsnew_0180.deprecations:
650
647
@@ -687,7 +684,7 @@ Deprecations
687
684
- ``pd.tseries.frequencies.get_offset_name`` function is deprecated. Use offset's ``.freqstr`` property as alternative (:issue:`11192`)
688
685
- ``pandas.stats.fama_macbeth`` routines are deprecated and will be removed in a future version (:issue:`6077`)
689
686
- ``pandas.stats.ols``, ``pandas.stats.plm`` and ``pandas.stats.var`` routines are deprecated and will be removed in a future version (:issue:`6077`)
690
-
- show a ``FutureWarning`` rather than a ``DeprecationWarning`` on using long-time deprecated syntax in ``HDFStore.select``, where ``where`` clause is not a string-like (:issue:`12027`)
687
+
- show a ``FutureWarning`` rather than a ``DeprecationWarning`` on using long-time deprecated syntax in ``HDFStore.select``, where the ``where`` clause is not a string-like (:issue:`12027`)
0 commit comments