Skip to content

Commit e9b9a2c

Browse files
simonjayhawkinsphofl
authored andcommitted
DOC: minor tidy of 1.5 release notes (pandas-dev#45940)
1 parent 69a7420 commit e9b9a2c

File tree

1 file changed

+43
-40
lines changed

1 file changed

+43
-40
lines changed

doc/source/whatsnew/v1.5.0.rst

+43-40
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Other enhancements
3737
- :meth:`to_numeric` now preserves float64 arrays when downcasting would generate values not representable in float32 (:issue:`43693`)
3838
- :meth:`Series.reset_index` and :meth:`DataFrame.reset_index` now support the argument ``allow_duplicates`` (:issue:`44410`)
3939
- :meth:`.GroupBy.min` and :meth:`.GroupBy.max` now supports `Numba <https://numba.pydata.org/>`_ execution with the ``engine`` keyword (:issue:`45428`)
40-
- Implemented a ``bool``-dtype :class:`Index`, passing a bool-dtype arraylike to ``pd.Index`` will now retain ``bool`` dtype instead of casting to ``object`` (:issue:`45061`)
41-
- Implemented a complex-dtype :class:`Index`, passing a complex-dtype arraylike to ``pd.Index`` will now retain complex dtype instead of casting to ``object`` (:issue:`45845`)
40+
- Implemented a ``bool``-dtype :class:`Index`, passing a bool-dtype array-like to ``pd.Index`` will now retain ``bool`` dtype instead of casting to ``object`` (:issue:`45061`)
41+
- Implemented a complex-dtype :class:`Index`, passing a complex-dtype array-like to ``pd.Index`` will now retain complex dtype instead of casting to ``object`` (:issue:`45845`)
4242

4343
-
4444

@@ -68,34 +68,7 @@ notable_bug_fix2
6868
Backwards incompatible API changes
6969
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7070

71-
.. _whatsnew_150.api_breaking.deps:
72-
73-
Increased minimum versions for dependencies
74-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75-
Some minimum supported versions of dependencies were updated.
76-
If installed, we now require:
77-
78-
+-----------------+-----------------+----------+---------+
79-
| Package | Minimum Version | Required | Changed |
80-
+=================+=================+==========+=========+
81-
| mypy (dev) | 0.931 | | X |
82-
+-----------------+-----------------+----------+---------+
83-
84-
85-
For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html>`_ the general recommendation is to use the latest version.
86-
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
87-
Optional libraries below the lowest tested version may still work, but are not considered supported.
88-
89-
+-----------------+-----------------+---------+
90-
| Package | Minimum Version | Changed |
91-
+=================+=================+=========+
92-
| | | X |
93-
+-----------------+-----------------+---------+
94-
95-
See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.
96-
97-
98-
.. _whatsnew_150.read_xml_dtypes:
71+
.. _whatsnew_150.api_breaking.read_xml_dtypes:
9972

10073
read_xml now supports ``dtype``, ``converters``, and ``parse_dates``
10174
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -136,6 +109,37 @@ apply converter methods, and parse dates (:issue:`43567`).
136109
df
137110
df.dtypes
138111
112+
.. _whatsnew_150.api_breaking.api_breaking2:
113+
114+
api_breaking_change2
115+
^^^^^^^^^^^^^^^^^^^^
116+
117+
.. _whatsnew_150.api_breaking.deps:
118+
119+
Increased minimum versions for dependencies
120+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121+
Some minimum supported versions of dependencies were updated.
122+
If installed, we now require:
123+
124+
+-----------------+-----------------+----------+---------+
125+
| Package | Minimum Version | Required | Changed |
126+
+=================+=================+==========+=========+
127+
| mypy (dev) | 0.931 | | X |
128+
+-----------------+-----------------+----------+---------+
129+
130+
131+
For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html>`_ the general recommendation is to use the latest version.
132+
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
133+
Optional libraries below the lowest tested version may still work, but are not considered supported.
134+
135+
+-----------------+-----------------+---------+
136+
| Package | Minimum Version | Changed |
137+
+=================+=================+=========+
138+
| | | X |
139+
+-----------------+-----------------+---------+
140+
141+
See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.
142+
139143
.. _whatsnew_150.api_breaking.other:
140144

141145
Other API changes
@@ -214,7 +218,7 @@ The following attributes are now public and considered safe to access.
214218
- ``supported_extensions``
215219

216220
The following attributes have been deprecated. They now raise a ``FutureWarning``
217-
when accessed and will removed in a future version. Users should be aware
221+
when accessed and will be removed in a future version. Users should be aware
218222
that their usage is considered unsafe, and can lead to unexpected results.
219223

220224
- ``cur_sheet``
@@ -231,7 +235,7 @@ Other Deprecations
231235
^^^^^^^^^^^^^^^^^^
232236
- Deprecated the keyword ``line_terminator`` in :meth:`DataFrame.to_csv` and :meth:`Series.to_csv`, use ``lineterminator`` instead; this is for consistency with :func:`read_csv` and the standard library 'csv' module (:issue:`9568`)
233237
- Deprecated behavior of :meth:`SparseArray.astype`, :meth:`Series.astype`, and :meth:`DataFrame.astype` with :class:`SparseDtype` when passing a non-sparse ``dtype``. In a future version, this will cast to that non-sparse dtype instead of wrapping it in a :class:`SparseDtype` (:issue:`34457`)
234-
- Deprecated behavior of :meth:`DatetimeIndex.intersection` and :meth:`DatetimeIndex.symmetric_difference` (``union`` behavior was already deprecated in version 1.3.0) with mixed timezones; in a future version both will be cast to UTC instead of object dtype (:issue:`39328`, :issue:`45357`)
238+
- Deprecated behavior of :meth:`DatetimeIndex.intersection` and :meth:`DatetimeIndex.symmetric_difference` (``union`` behavior was already deprecated in version 1.3.0) with mixed time zones; in a future version both will be cast to UTC instead of object dtype (:issue:`39328`, :issue:`45357`)
235239
- Deprecated :meth:`DataFrame.iteritems`, :meth:`Series.iteritems`, :meth:`HDFStore.iteritems` in favor of :meth:`DataFrame.items`, :meth:`Series.items`, :meth:`HDFStore.items` (:issue:`45321`)
236240
- Deprecated :meth:`Series.is_monotonic` and :meth:`Index.is_monotonic` in favor of :meth:`Series.is_monotonic_increasing` and :meth:`Index.is_monotonic_increasing` (:issue:`45422`, :issue:`21335`)
237241
- Deprecated the ``__array_wrap__`` method of DataFrame and Series, rely on standard numpy ufuncs instead (:issue:`45451`)
@@ -277,15 +281,15 @@ Timedelta
277281
^^^^^^^^^
278282
-
279283

280-
Timezones
281-
^^^^^^^^^
284+
Time Zones
285+
^^^^^^^^^^
282286
-
283287
-
284288

285289
Numeric
286290
^^^^^^^
287291
- Bug in operations with array-likes with ``dtype="boolean"`` and :attr:`NA` incorrectly altering the array in-place (:issue:`45421`)
288-
- Bug in multiplying a :class:`Series` with ``IntegerDtype`` or ``FloatingDtype`` by an arraylike with ``timedelta64[ns]`` dtype incorrectly raising (:issue:`45622`)
292+
- Bug in multiplying a :class:`Series` with ``IntegerDtype`` or ``FloatingDtype`` by an array-like with ``timedelta64[ns]`` dtype incorrectly raising (:issue:`45622`)
289293
-
290294

291295
Conversion
@@ -313,7 +317,7 @@ Indexing
313317
- Bug in :meth:`DataFrame.iloc` where indexing a single row on a :class:`DataFrame` with a single ExtensionDtype column gave a copy instead of a view on the underlying data (:issue:`45241`)
314318
- Bug in :meth:`Series.align` does not create :class:`MultiIndex` with union of levels when both MultiIndexes intersections are identical (:issue:`45224`)
315319
- Bug in setting a NA value (``None`` or ``np.nan``) into a :class:`Series` with int-based :class:`IntervalDtype` incorrectly casting to object dtype instead of a float-based :class:`IntervalDtype` (:issue:`45568`)
316-
- Bug in :meth:`Series.__setitem__` with a non-integer :class:`Index` when using an integer key to set a value that cannot be set inplace where a ``ValueError`` was raised insead of casting to a common dtype (:issue:`45070`)
320+
- Bug in :meth:`Series.__setitem__` with a non-integer :class:`Index` when using an integer key to set a value that cannot be set inplace where a ``ValueError`` was raised instead of casting to a common dtype (:issue:`45070`)
317321
- Bug in :meth:`Series.__setitem__` when setting incompatible values into a ``PeriodDtype`` or ``IntervalDtype`` :class:`Series` raising when indexing with a boolean mask but coercing when indexing with otherwise-equivalent indexers; these now consistently coerce, along with :meth:`Series.mask` and :meth:`Series.where` (:issue:`45768`)
318322
- Bug in :meth:`Series.loc.__setitem__` and :meth:`Series.loc.__getitem__` not raising when using multiple keys without using a :class:`MultiIndex` (:issue:`13831`)
319323
- Bug when setting a value too large for a :class:`Series` dtype failing to coerce to a common type (:issue:`26049`, :issue:`32878`)
@@ -326,12 +330,13 @@ Indexing
326330
- Bug in indexing on a :class:`DatetimeIndex` with a ``np.str_`` key incorrectly raising (:issue:`45580`)
327331
- Bug in :meth:`CategoricalIndex.get_indexer` when index contains ``NaN`` values, resulting in elements that are in target but not present in the index to be mapped to the index of the NaN element, instead of -1 (:issue:`45361`)
328332
- Bug in setting large integer values into :class:`Series` with ``float32`` or ``float16`` dtype incorrectly altering these values instead of coercing to ``float64`` dtype (:issue:`45844`)
333+
- Bug in :meth:`Series.asof` and :meth:`DataFrame.asof` incorrectly casting bool-dtype results to ``float64`` dtype (:issue:`16063`)
329334
-
330335

331336
Missing
332337
^^^^^^^
333338
- Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with ``downcast`` keyword not being respected in some cases where there are no NA values present (:issue:`45423`)
334-
- Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with :class:`IntervalDtype` and incompatible value raising instead of casting to a common (usually object) dtype (:issue:`??`)
339+
- Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with :class:`IntervalDtype` and incompatible value raising instead of casting to a common (usually object) dtype (:issue:`45796`)
335340
- Bug in :meth:`DataFrame.interpolate` with object-dtype column not returning a copy with ``inplace=False`` (:issue:`45791`)
336341
-
337342

@@ -385,13 +390,11 @@ ExtensionArray
385390

386391
Styler
387392
^^^^^^
388-
- Minor bug when attempting to apply styling functions to an empty DataFrame subset (:issue:`45313`)
393+
- Bug when attempting to apply styling functions to an empty DataFrame subset (:issue:`45313`)
389394
-
390395

391396
Other
392397
^^^^^
393-
- Bug in :meth:`Series.asof` and :meth:`DataFrame.asof` incorrectly casting bool-dtype results to ``float64`` dtype (:issue:`16063`)
394-
-
395398

396399
.. ***DO NOT USE THIS SECTION***
397400

0 commit comments

Comments
 (0)