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/v3.1.0.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor
118
118
Other API changes
119
119
^^^^^^^^^^^^^^^^^
120
120
- :attr:`Index.values` and :attr:`Index.array` now return read-only arrays for all dtypes, so an :class:`Index` can no longer be silently corrupted by mutating the returned array in place (previously this left the Index displaying the new value while lookups still used the old one) (:issue:`38547`)
121
-
- :class:`Timestamp` with a non-zero ``nanosecond`` argument now stores the result in nanosecond resolution regardless of ``unit`` and of the input's own resolution, so values too far from the epoch to be held in nanoseconds raise :class:`OutOfBoundsDatetime` where the keyword was previously ignored (:issue:`XXXXX`)
121
+
- :class:`Timestamp` with a non-zero ``nanosecond`` argument now stores the result in nanosecond resolution regardless of ``unit`` and of the input's own resolution, so values too far from the epoch to be held in nanoseconds raise :class:`OutOfBoundsDatetime` where the keyword was previously ignored (:issue:`66533`)
122
122
- :func:`infer_freq` on quarter-start data now reports the equivalent anchor from the first calendar quarter, e.g. ``QS-JAN`` instead of ``QS-OCT`` (:issue:`36939`)
123
123
- :func:`testing.assert_frame_equal` with ``check_freq=True`` now also checks the ``freq`` of :class:`DatetimeIndex` and :class:`TimedeltaIndex` *columns*; previously only the ``freq`` of the index was checked (:issue:`51920`)
124
124
- :func:`testing.assert_series_equal` with ``check_index=False`` no longer checks the ``freq`` attribute of a :class:`DatetimeIndex` or :class:`TimedeltaIndex`, as ``freq`` is an attribute of the index (:issue:`51920`)
@@ -338,8 +338,8 @@ Datetimelike
338
338
- Bug in :class:`Timestamp` constructor and :meth:`Timestamp.replace` where a value landing exactly on the ``NaT`` sentinel — whether from a ``nanosecond`` or ``microsecond`` argument or from shifting a timezone-aware wall time to UTC — silently produced ``NaT`` (or a :class:`Timestamp` that reported itself as non-null but read back as ``NaT`` once placed in a :class:`Series`) instead of raising :class:`OutOfBoundsDatetime` (:issue:`66510`)
339
339
- Bug in :class:`Timestamp` constructor and :meth:`Timestamp.replace` where shifting a timezone-aware value to UTC past the representable range raised a raw ``OverflowError`` instead of :class:`OutOfBoundsDatetime`, e.g. ``Timestamp.max.replace(tzinfo=timezone(timedelta(hours=-9)))`` (:issue:`66510`)
340
340
- Bug in :class:`Timestamp` constructor where passing ``np.str_`` objects would fail in Cython string parsing (:issue:`48974`)
341
-
- Bug in :class:`Timestamp` constructor where the ``nanosecond`` keyword was silently ignored unless the first argument was a ``datetime`` or :class:`Timestamp`; it is now also honored for :class:`numpy.datetime64`, ``date``, ``int``, and ``float`` input, in each case overwriting (not adding to) the sub-microsecond portion of the input (:issue:`XXXXX`)
342
341
- Bug in :class:`Timestamp` constructor where strings with a negative year of fewer than 4 digits (e.g. ``"-111-01-01"``) silently dropped the leading ``"-"`` and were parsed as a positive year; BC dates with 1-4 digit years now parse correctly, matching :class:`numpy.datetime64` (:issue:`55954`)
342
+
- Bug in :class:`Timestamp` constructor where the ``nanosecond`` keyword was silently ignored unless the first argument was a ``datetime`` or :class:`Timestamp`; it is now also honored for :class:`numpy.datetime64`, ``date``, ``int``, and ``float`` input, in each case overwriting (not adding to) the sub-microsecond portion of the input (:issue:`66533`)
343
343
- Bug in :class:`Timestamp` constructor, :class:`Timedelta` constructor, :func:`to_datetime`, and :func:`to_timedelta` with non-round ``float`` input and ``unit`` failing to raise when the value is just outside the representable bounds (:issue:`57366`)
344
344
- Bug in :func:`api.types.infer_dtype` returning ``"date"`` or ``"mixed"`` instead of ``"datetime"`` / ``"timedelta"`` for lists of :class:`Timestamp`/:class:`Timedelta` values mixed with ``pd.NA`` (:issue:`53023`)
345
345
- Bug in :func:`date_range` where ``inclusive="left"`` and ``inclusive="right"`` returned a single-element result instead of empty when ``start`` equals ``end`` (:issue:`55293`)
0 commit comments