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.22.0.txt
+8
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,18 @@ Backwards incompatible API changes
35
35
-
36
36
-
37
37
38
+
39
+
40
+
41
+
42
+
38
43
.. _whatsnew_0220.api:
39
44
40
45
Other API Changes
41
46
^^^^^^^^^^^^^^^^^
42
47
48
+
- :func:`Series.astype` and :func:`Index.astype` with an incompatible dtype will now raise a ``TypeError`` rather than a ``ValueError`` (:issue:`18231`)
49
+
- ``Series`` construction with an ``object`` dtyped tz-aware datetime and ``dtype=object`` specified, will now return an ``object`` dtyped ``Series``, previously this would infer the datetime dtype (:issue:`18231`)
43
50
- ``NaT`` division with :class:`datetime.timedelta` will now return ``NaN`` instead of raising (:issue:`17876`)
44
51
- All-NaN levels in a ``MultiIndex`` are now assigned ``float`` rather than ``object`` dtype, promoting consistency with ``Index`` (:issue:`17929`).
45
52
- :class:`Timestamp` will no longer silently ignore unused or invalid ``tz`` or ``tzinfo`` keyword arguments (:issue:`17690`)
@@ -71,6 +78,7 @@ Performance Improvements
71
78
72
79
- Indexers on ``Series`` or ``DataFrame`` no longer create a reference cycle (:issue:`17956`)
73
80
- Added a keyword argument, ``cache``, to :func:`to_datetime` that improved the performance of converting duplicate datetime arguments (:issue:`11665`)
81
+
- ``Series`` construction will reduce the number of copies made of the input data in certain cases (:issue:`17449`)
0 commit comments