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.19.0.txt
+9-8
Original file line number
Diff line number
Diff line change
@@ -411,7 +411,7 @@ Other enhancements
411
411
df.sort_values(by='row2', axis=1)
412
412
413
413
- Added documentation to :ref:`I/O<io.dtypes>` regarding the perils of reading in columns with mixed dtypes and how to handle it (:issue:`13746`)
414
-
- Raise ImportError for in the sql functions when sqlalchemy is not installed and a connection string is used (:issue:`11920`).
414
+
- Raise ``ImportError`` in the sql functions when ``sqlalchemy`` is not installed and a connection string is used (:issue:`11920`).
415
415
416
416
417
417
.. _whatsnew_0190.api:
@@ -505,10 +505,9 @@ New Behavior:
505
505
506
506
.. _whatsnew_0190.api.to_datetime_coerce:
507
507
508
-
``.to_datetime()`` when coercing
509
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
508
+
``.to_datetime()`` changes
509
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
510
510
511
-
A bug is fixed in ``.to_datetime()`` when passing integers or floats, and no ``unit`` and ``errors='coerce'`` (:issue:`13180`).
512
511
Previously if ``.to_datetime()`` encountered mixed integers/floats and strings, but no datetimes with ``errors='coerce'`` it would convert all to ``NaT``.
513
512
514
513
Previous Behavior:
@@ -524,6 +523,12 @@ This will now convert integers/floats with the default unit of ``ns``.
524
523
525
524
pd.to_datetime([1, 'foo'], errors='coerce')
526
525
526
+
- Bug in ``pd.to_datetime()`` when passing integers or floats, and no ``unit`` and ``errors='coerce'`` (:issue:`13180`).
527
+
- Bug in ``pd.to_datetime()`` when passing invalid datatypes (e.g. bool); will now respect the ``errors`` keyword (:issue:`13176`)
528
+
- Bug in ``pd.to_datetime()`` which overflowed on ``int8``, and ``int16`` dtypes (:issue:`13451`)
529
+
- Bug in ``pd.to_datetime()`` raise ``AttributeError`` with NaN and the other string is not valid when errors='ignore' (:issue:`12424`)
530
+
- Bug in ``pd.to_datetime()`` did not cast floats correctly when ``unit`` was specified, resulting in truncated datetime (:issue:`13845`)
531
+
527
532
.. _whatsnew_0190.api.merging:
528
533
529
534
Merging changes
@@ -929,8 +934,6 @@ Bug Fixes
929
934
- Bug ``Series.isnull`` and ``Series.notnull`` ignore ``Period('NaT')`` (:issue:`13737`)
930
935
- Bug ``Series.fillna`` and ``Series.dropna`` don't affect to ``Period('NaT')`` (:issue:`13737`)
931
936
932
-
- Bug in ``pd.to_datetime()`` when passing invalid datatypes (e.g. bool); will now respect the ``errors`` keyword (:issue:`13176`)
933
-
- Bug in ``pd.to_datetime()`` which overflowed on ``int8``, and ``int16`` dtypes (:issue:`13451`)
934
937
- Bug in extension dtype creation where the created types were not is/identical (:issue:`13285`)
935
938
- Bug in ``.resample(..)`` where incorrect warnings were triggered by IPython introspection (:issue:`13618`)
936
939
- Bug in ``NaT`` - ``Period`` raises ``AttributeError`` (:issue:`13071`)
@@ -945,7 +948,6 @@ Bug Fixes
945
948
- Bug in ``.set_index`` raises ``AmbiguousTimeError`` if new index contains DST boundary and multi levels (:issue:`12920`)
946
949
- Bug in ``.shift`` raises ``AmbiguousTimeError`` if data contains datetime near DST boundary (:issue:`13926`)
947
950
- Bug in ``pd.read_hdf()`` returns incorrect result when a ``DataFrame`` with a ``categorical`` column and a query which doesn't match any values (:issue:`13792`)
948
-
- Bug in ``pd.to_datetime()`` raise ``AttributeError`` with NaN and the other string is not valid when errors='ignore' (:issue:`12424`)
949
951
950
952
951
953
- Bug in ``Series`` comparison operators when dealing with zero dim NumPy arrays (:issue:`13006`)
@@ -992,5 +994,4 @@ Bug Fixes
992
994
993
995
- Bug in ``Index`` raises ``KeyError`` displaying incorrect column when column is not in the df and columns contains duplicate values (:issue:`13822`)
994
996
- Bug in ``Period`` and ``PeriodIndex`` creating wrong dates when frequency has combined offset aliases (:issue:`13874`)
995
-
- Bug in ``pd.to_datetime()`` did not cast floats correctly when ``unit`` was specified, resulting in truncated datetime (:issue:`13845`)
996
997
- Bug in ``.to_string()`` when called with an integer ``line_width`` and ``index=False`` raises an UnboundLocalError exception because ``idx`` referenced before assignment.
0 commit comments