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
- ``tz_localize`` now accepts the ``ambiguous`` keyword which allows for passing an array of bools
267
+
indicating whether the date belongs in DST or not, 'NaT' for setting transition times to NaT,
268
+
'infer' for inferring DST/non-DST, and 'raise' (default) for an AmbiguousTimeError to be raised. See :ref:`the docs<timeseries.timezone_ambiguous>` for more details (:issue:`7943`)
269
+
268
270
- ``DataFrame.info()`` now ends its output with a newline character (:issue:`8114`)
269
271
270
272
.. _whatsnew_0150.dt:
@@ -320,7 +322,7 @@ The ``.dt`` accessor works for period and timedelta dtypes.
320
322
321
323
.. _whatsnew_0150.roll:
322
324
323
-
Rolling/exapnding moments API changes
325
+
Rolling/Expanding Moments API changes
324
326
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
325
327
326
328
- :func:`rolling_min`, :func:`rolling_max`, :func:`rolling_cov`, and :func:`rolling_corr`
@@ -433,6 +435,60 @@ Rolling/exapnding moments API changes
See :ref:`Exponentially weighted moment functions <stats.moments.exponentially_weighted>` for details. (:issue:`7912`)
491
+
436
492
.. _whatsnew_0150.refactoring:
437
493
438
494
Internal Refactoring
@@ -655,15 +711,14 @@ Enhancements
655
711
656
712
- ``Period`` and ``PeriodIndex`` supports addition/subtraction with ``timedelta``-likes (:issue:`7966`)
657
713
658
-
If ``Period`` freq is ``D``, ``H``, ``T``, ``S``, ``L``, ``U``, ``N``, ``timedelta``-like can be added if the result can have same freq. Otherwise, only the same ``offsets`` can be added.
714
+
If ``Period`` freq is ``D``, ``H``, ``T``, ``S``, ``L``, ``U``, ``N``, ``Timedelta``-like can be added if the result can have same freq. Otherwise, only the same ``offsets`` can be added.
- ``tz_localize`` now accepts the ``ambiguous`` keyword which allows for passing an array of bools
690
-
indicating whether the date belongs in DST or not, 'NaT' for setting transition times to NaT,
691
-
'infer' for inferring DST/non-DST, and 'raise' (default) for an AmbiguousTimeError to be raised (:issue:`7943`).
692
-
See :ref:`the docs<timeseries.timezone_ambiguous>` for more details.
693
-
694
-
695
-
696
-
697
-
698
-
699
744
.. _whatsnew_0150.performance:
700
745
701
746
Performance
@@ -777,60 +822,6 @@ Bug Fixes
777
822
- Bug in ``StataReader`` which did not read variable labels in 117 files due to difference between Stata documentation and implementation (:issue:`7816`)
778
823
- Bug in ``StataReader`` where strings were always converted to 244 characters-fixed width irrespective of underlying string size (:issue:`7858`)
779
824
780
-
- Bug in :func:`expanding_cov`, :func:`expanding_corr`, :func:`rolling_cov`, :func:`rolling_cor`, :func:`ewmcov`, and :func:`ewmcorr`
781
-
returning results with columns sorted by name and producing an error for non-unique columns;
782
-
now handles non-unique columns and returns columns in original order
783
-
(except for the case of two DataFrames with ``pairwise=False``, where behavior is unchanged) (:issue:`7542`)
784
-
- Bug in :func:`rolling_count` and ``expanding_*`` functions unnecessarily producing error message for zero-length data (:issue:`8056`)
785
-
- Bug in :func:`rolling_apply` and :func:`expanding_apply` interpreting ``min_periods=0`` as ``min_periods=1`` (:issue:`8080`)
786
-
- Bug in :func:`expanding_std` and :func:`expanding_var` for a single value producing a confusing error message (:issue:`7900`)
787
-
- Bug in :func:`rolling_std` and :func:`rolling_var` for a single value producing ``0`` rather than ``NaN`` (:issue:`7900`)
788
-
789
-
- Bug in :func:`ewmstd`, :func:`ewmvol`, :func:`ewmvar`, and :func:`ewmcov`
790
-
calculation of de-biasing factors when ``bias=False`` (the default).
791
-
Previously an incorrect constant factor was used, based on ``adjust=True``, ``ignore_na=True``,
792
-
and an infinite number of observations.
793
-
Now a different factor is used for each entry, based on the actual weights
794
-
(analogous to the usual ``N/(N-1)`` factor).
795
-
In particular, for a single point a value of ``NaN`` is returned when ``bias=False``,
796
-
whereas previously a value of (approximately) ``0`` was returned.
797
-
798
-
For example, consider the following pre-0.15.0 results for ``ewmvar(..., bias=False)``,
799
-
and the corresponding debiasing factors:
800
-
801
-
.. ipython:: python
802
-
803
-
s = Series([1., 2., 0., 4.])
804
-
805
-
.. code-block:: python
806
-
807
-
In [69]: ewmvar(s, com=2., bias=False)
808
-
Out[69]:
809
-
0 -2.775558e-16
810
-
1 3.000000e-01
811
-
2 9.556787e-01
812
-
3 3.585799e+00
813
-
dtype: float64
814
-
815
-
In [70]: ewmvar(s, com=2., bias=False) / ewmvar(s, com=2., bias=True)
816
-
Out[70]:
817
-
0 1.25
818
-
1 1.25
819
-
2 1.25
820
-
3 1.25
821
-
dtype: float64
822
-
823
-
Note that entry ``0`` is approximately 0, and the debiasing factors are a constant 1.25.
824
-
By comparison, the following 0.15.0 results have a ``NaN`` for entry ``0``,
825
-
and the debiasing factors are decreasing (towards 1.25):
See :ref:`Exponentially weighted moment functions <stats.moments.exponentially_weighted>` for details. (:issue:`7912`)
833
-
834
825
- Bug in ``DataFrame.plot`` and ``Series.plot`` may ignore ``rot`` and ``fontsize`` keywords (:issue:`7844`)
835
826
836
827
@@ -929,9 +920,7 @@ Bug Fixes
929
920
- Bug in ``DataFrame.__setitem__`` that caused errors when setting a dataframe column to a sparse array (:issue:`8131`)
930
921
- Bug where ``Dataframe.boxplot()`` failed when entire column was empty (:issue:`8181`).
931
922
- Bug with messed variables in ``radviz`` visualization (:issue:`8199`).
932
-
- Bug in interpolation methods with the ``limit`` keyword when no values
933
-
needed interpolating (:issue:`7173`).
934
-
- Bug where ``col_space`` was ignored in ``DataFrame.to_string()`` when ``header=False``
935
-
(:issue:`8230`).
923
+
- Bug in interpolation methods with the ``limit`` keyword when no values needed interpolating (:issue:`7173`).
924
+
- Bug where ``col_space`` was ignored in ``DataFrame.to_string()`` when ``header=False`` (:issue:`8230`).
936
925
937
926
- Bug in DataFrame terminal display: Setting max_column/max_rows to zero did not trigger auto-resizing of dfs to fit terminal width/height (:issue:`7180`).
0 commit comments