Skip to content

Commit 4d6a40a

Browse files
committed
TST: move SparseList to deprecate in api, xref pandas-dev#14007
DOC: whatsnew fixes
1 parent 1d7e451 commit 4d6a40a

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

doc/source/whatsnew/v0.19.0.txt

+9-8
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ Other enhancements
411411
df.sort_values(by='row2', axis=1)
412412

413413
- 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`).
415415

416416

417417
.. _whatsnew_0190.api:
@@ -505,10 +505,9 @@ New Behavior:
505505

506506
.. _whatsnew_0190.api.to_datetime_coerce:
507507

508-
``.to_datetime()`` when coercing
509-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
508+
``.to_datetime()`` changes
509+
^^^^^^^^^^^^^^^^^^^^^^^^^^
510510

511-
A bug is fixed in ``.to_datetime()`` when passing integers or floats, and no ``unit`` and ``errors='coerce'`` (:issue:`13180`).
512511
Previously if ``.to_datetime()`` encountered mixed integers/floats and strings, but no datetimes with ``errors='coerce'`` it would convert all to ``NaT``.
513512

514513
Previous Behavior:
@@ -524,6 +523,12 @@ This will now convert integers/floats with the default unit of ``ns``.
524523

525524
pd.to_datetime([1, 'foo'], errors='coerce')
526525

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+
527532
.. _whatsnew_0190.api.merging:
528533

529534
Merging changes
@@ -929,8 +934,6 @@ Bug Fixes
929934
- Bug ``Series.isnull`` and ``Series.notnull`` ignore ``Period('NaT')`` (:issue:`13737`)
930935
- Bug ``Series.fillna`` and ``Series.dropna`` don't affect to ``Period('NaT')`` (:issue:`13737`)
931936

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`)
934937
- Bug in extension dtype creation where the created types were not is/identical (:issue:`13285`)
935938
- Bug in ``.resample(..)`` where incorrect warnings were triggered by IPython introspection (:issue:`13618`)
936939
- Bug in ``NaT`` - ``Period`` raises ``AttributeError`` (:issue:`13071`)
@@ -945,7 +948,6 @@ Bug Fixes
945948
- Bug in ``.set_index`` raises ``AmbiguousTimeError`` if new index contains DST boundary and multi levels (:issue:`12920`)
946949
- Bug in ``.shift`` raises ``AmbiguousTimeError`` if data contains datetime near DST boundary (:issue:`13926`)
947950
- 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`)
949951

950952

951953
- Bug in ``Series`` comparison operators when dealing with zero dim NumPy arrays (:issue:`13006`)
@@ -992,5 +994,4 @@ Bug Fixes
992994

993995
- Bug in ``Index`` raises ``KeyError`` displaying incorrect column when column is not in the df and columns contains duplicate values (:issue:`13822`)
994996
- 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`)
996997
- Bug in ``.to_string()`` when called with an integer ``line_width`` and ``index=False`` raises an UnboundLocalError exception because ``idx`` referenced before assignment.

pandas/api/tests/test_api.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ class TestPDApi(Base, tm.TestCase):
5858

5959
# these are already deprecated; awaiting removal
6060
deprecated_classes = ['TimeSeries', 'WidePanel',
61-
'SparseTimeSeries', 'Panel4D']
61+
'SparseTimeSeries', 'Panel4D',
62+
'SparseList']
6263

6364
# these should be deperecated in the future
64-
deprecated_classes_in_future = ['SparseList', 'Term', 'Panel']
65+
deprecated_classes_in_future = ['Term', 'Panel']
6566

6667
# these should be removed from top-level namespace
6768
remove_classes_from_top_level_namespace = ['Expr']

0 commit comments

Comments
 (0)