Skip to content

Commit 969688a

Browse files
DOC: fix header level in 1.3 release notes (#41925)
1 parent b4dcf3b commit 969688a

File tree

1 file changed

+31
-25
lines changed

1 file changed

+31
-25
lines changed

doc/source/whatsnew/v1.3.0.rst

+31-25
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ including other versions of pandas.
2020

2121
.. ---------------------------------------------------------------------------
2222
23+
.. _whatsnew_130.enhancements:
24+
2325
Enhancements
2426
~~~~~~~~~~~~
2527

26-
.. _whatsnew_130.read_csv_json_http_headers:
28+
.. _whatsnew_130.enhancements.read_csv_json_http_headers:
2729

2830
Custom HTTP(s) headers when reading csv or json files
2931
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -43,7 +45,7 @@ For example:
4345
storage_options=headers
4446
)
4547
46-
.. _whatsnew_130.read_to_xml:
48+
.. _whatsnew_130.enhancements.read_to_xml:
4749

4850
Read and write XML documents
4951
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +112,7 @@ both XPath 1.0 and XSLT 1.0 are available. (:issue:`27554`)
110112
111113
For more, see :ref:`io.xml` in the user guide on IO tools.
112114

113-
.. _whatsnew_130.styler_enhancements:
115+
.. _whatsnew_130.enhancements.styler:
114116

115117
Styler enhancements
116118
^^^^^^^^^^^^^^^^^^^
@@ -137,7 +139,7 @@ which has been revised and improved (:issue:`39720`, :issue:`39317`, :issue:`404
137139
- Added the method :meth:`.Styler.to_latex` (:issue:`21673`)
138140
- Added the method :meth:`.Styler.to_html` (:issue:`13379`)
139141

140-
.. _whatsnew_130.dataframe_honors_copy_with_dict:
142+
.. _whatsnew_130.enhancements.dataframe_honors_copy_with_dict:
141143

142144
DataFrame constructor honors ``copy=False`` with dict
143145
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -161,7 +163,7 @@ a copy will no longer be made (:issue:`32960`).
161163
The default behavior when not passing ``copy`` will remain unchanged, i.e.
162164
a copy will be made.
163165

164-
.. _whatsnew_130.arrow_string:
166+
.. _whatsnew_130.enhancements.arrow_string:
165167

166168
PyArrow backed string data type
167169
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -213,7 +215,7 @@ String accessor methods returning integers will return a value with :class:`Int6
213215
214216
s.str.count("a")
215217
216-
.. _whatsnew_130.centered_datetimelike_rolling_window:
218+
.. _whatsnew_130.enhancements.centered_datetimelike_rolling_window:
217219

218220
Centered datetime-like rolling windows
219221
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -280,6 +282,8 @@ Notable bug fixes
280282

281283
These are bug fixes that might have notable behavior changes.
282284

285+
.. _whatsnew_130.notable_bug_fixes.categorical_unique_maintains_dtype:
286+
283287
``Categorical.unique`` now always maintains same dtype as original
284288
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
285289

@@ -313,6 +317,8 @@ As an example of this, given:
313317
unique
314318
original.dtype == unique.dtype
315319
320+
.. _whatsnew_130.notable_bug_fixes.combine_first_preserves_dtype:
321+
316322
Preserve dtypes in :meth:`DataFrame.combine_first`
317323
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
318324

@@ -343,8 +349,10 @@ Preserve dtypes in :meth:`DataFrame.combine_first`
343349
344350
combined.dtypes
345351
346-
Group by methods agg and transform no longer changes return dtype for callables
347-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
352+
.. _whatsnew_130.notable_bug_fixes.groupby_preserves_dtype:
353+
354+
Groupby methods agg and transform no longer changes return dtype for callables
355+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
348356

349357
Previously the methods :meth:`.DataFrameGroupBy.aggregate`,
350358
:meth:`.SeriesGroupBy.aggregate`, :meth:`.DataFrameGroupBy.transform`, and
@@ -374,6 +382,8 @@ values as measured by ``np.allclose``. Now no such casting occurs.
374382
375383
df.groupby('key').agg(lambda x: x.sum())
376384
385+
.. _whatsnew_130.notable_bug_fixes.groupby_reductions_float_result:
386+
377387
``float`` result for :meth:`.GroupBy.mean`, :meth:`.GroupBy.median`, and :meth:`.GroupBy.var`
378388
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
379389

@@ -399,6 +409,8 @@ Now, these methods will always return a float dtype. (:issue:`41137`)
399409
400410
df.groupby(df.index).mean()
401411
412+
.. _whatsnew_130.notable_bug_fixes.setitem_column_try_inplace:
413+
402414
Try operating inplace when setting values with ``loc`` and ``iloc``
403415
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
404416

@@ -595,6 +607,13 @@ with a :class:`MultiIndex` in the result. This can lead to a perceived duplicati
595607
df.groupby('label1').rolling(1).sum()
596608
597609
610+
.. ---------------------------------------------------------------------------
611+
612+
.. _whatsnew_130.api_breaking:
613+
614+
Backwards incompatible API changes
615+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
616+
598617
.. _whatsnew_130.api_breaking.deps:
599618

600619
Increased minimum versions for dependencies
@@ -672,7 +691,7 @@ Optional libraries below the lowest tested version may still work, but are not c
672691

673692
See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.
674693

675-
.. _whatsnew_130.api.other:
694+
.. _whatsnew_130.api_breaking.other:
676695

677696
Other API changes
678697
^^^^^^^^^^^^^^^^^
@@ -682,9 +701,10 @@ Other API changes
682701
- Removed redundant ``freq`` from :class:`PeriodIndex` string representation (:issue:`41653`)
683702
- :meth:`ExtensionDtype.construct_array_type` is now a required method instead of an optional one for :class:`ExtensionDtype` subclasses (:issue:`24860`)
684703

704+
.. _whatsnew_130.api_breaking.build:
705+
685706
Build
686707
^^^^^
687-
688708
- Documentation in ``.pptx`` and ``.pdf`` formats are no longer included in wheels or source distributions. (:issue:`30741`)
689709

690710
.. ---------------------------------------------------------------------------
@@ -755,7 +775,7 @@ Deprecations
755775
.. _whatsnew_130.deprecations.nuisance_columns:
756776

757777
Deprecated dropping nuisance columns in DataFrame reductions and DataFrameGroupBy operations
758-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
778+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
759779
Calling a reduction (e.g. ``.min``, ``.max``, ``.sum``) on a :class:`DataFrame` with
760780
``numeric_only=None`` (the default), columns where the reduction raises a ``TypeError``
761781
are silently ignored and dropped from the result.
@@ -903,7 +923,6 @@ Timezones
903923
^^^^^^^^^
904924
- Bug in different ``tzinfo`` objects representing UTC not being treated as equivalent (:issue:`39216`)
905925
- Bug in ``dateutil.tz.gettz("UTC")`` not being recognized as equivalent to other UTC-representing tzinfos (:issue:`39276`)
906-
-
907926

908927
Numeric
909928
^^^^^^^
@@ -939,7 +958,6 @@ Conversion
939958

940959
Strings
941960
^^^^^^^
942-
943961
- Bug in the conversion from ``pyarrow.ChunkedArray`` to :class:`~arrays.StringArray` when the original had zero chunks (:issue:`41040`)
944962
- Bug in :meth:`Series.replace` and :meth:`DataFrame.replace` ignoring replacements with ``regex=True`` for ``StringDType`` data (:issue:`41333`, :issue:`35977`)
945963
- Bug in :meth:`Series.str.extract` with :class:`~arrays.StringArray` returning object dtype for an empty :class:`DataFrame` (:issue:`41441`)
@@ -955,7 +973,6 @@ Interval
955973

956974
Indexing
957975
^^^^^^^^
958-
959976
- Bug in :meth:`Index.union` and :meth:`MultiIndex.union` dropping duplicate ``Index`` values when ``Index`` was not monotonic or ``sort`` was set to ``False`` (:issue:`36289`, :issue:`31326`, :issue:`40862`)
960977
- Bug in :meth:`CategoricalIndex.get_indexer` failing to raise ``InvalidIndexError`` when non-unique (:issue:`38372`)
961978
- Bug in :meth:`Series.loc` raising a ``ValueError`` when input was filtered with a Boolean list and values to set were a list with lower dimension (:issue:`20438`)
@@ -998,7 +1015,6 @@ Indexing
9981015

9991016
Missing
10001017
^^^^^^^
1001-
10021018
- Bug in :class:`Grouper` did not correctly propagate the ``dropna`` argument; :meth:`.DataFrameGroupBy.transform` now correctly handles missing values for ``dropna=True`` (:issue:`35612`)
10031019
- Bug in :func:`isna`, :meth:`Series.isna`, :meth:`Index.isna`, :meth:`DataFrame.isna`, and the corresponding ``notna`` functions not recognizing ``Decimal("NaN")`` objects (:issue:`39409`)
10041020
- Bug in :meth:`DataFrame.fillna` not accepting a dictionary for the ``downcast`` keyword (:issue:`40809`)
@@ -1007,7 +1023,6 @@ Missing
10071023

10081024
MultiIndex
10091025
^^^^^^^^^^
1010-
10111026
- Bug in :meth:`DataFrame.drop` raising a ``TypeError`` when the :class:`MultiIndex` is non-unique and ``level`` is not provided (:issue:`36293`)
10121027
- Bug in :meth:`MultiIndex.intersection` duplicating ``NaN`` in the result (:issue:`38623`)
10131028
- Bug in :meth:`MultiIndex.equals` incorrectly returning ``True`` when the :class:`MultiIndex` contained ``NaN`` even when they are differently ordered (:issue:`38439`)
@@ -1017,7 +1032,6 @@ MultiIndex
10171032

10181033
I/O
10191034
^^^
1020-
10211035
- Bug in :meth:`Index.__repr__` when ``display.max_seq_items=1`` (:issue:`38415`)
10221036
- Bug in :func:`read_csv` not recognizing scientific notation if the argument ``decimal`` is set and ``engine="python"`` (:issue:`31920`)
10231037
- Bug in :func:`read_csv` interpreting ``NA`` value as comment, when ``NA`` does contain the comment string fixed for ``engine="python"`` (:issue:`34002`)
@@ -1056,19 +1070,15 @@ I/O
10561070
Period
10571071
^^^^^^
10581072
- Comparisons of :class:`Period` objects or :class:`Index`, :class:`Series`, or :class:`DataFrame` with mismatched ``PeriodDtype`` now behave like other mismatched-type comparisons, returning ``False`` for equals, ``True`` for not-equal, and raising ``TypeError`` for inequality checks (:issue:`39274`)
1059-
-
1060-
-
10611073

10621074
Plotting
10631075
^^^^^^^^
1064-
10651076
- Bug in :func:`plotting.scatter_matrix` raising when 2d ``ax`` argument passed (:issue:`16253`)
10661077
- Prevent warnings when Matplotlib's ``constrained_layout`` is enabled (:issue:`25261`)
10671078
- Bug in :func:`DataFrame.plot` was showing the wrong colors in the legend if the function was called repeatedly and some calls used ``yerr`` while others didn't (:issue:`39522`)
10681079
- Bug in :func:`DataFrame.plot` was showing the wrong colors in the legend if the function was called repeatedly and some calls used ``secondary_y`` and others use ``legend=False`` (:issue:`40044`)
10691080
- Bug in :meth:`DataFrame.plot.box` when ``dark_background`` theme was selected, caps or min/max markers for the plot were not visible (:issue:`40769`)
10701081

1071-
10721082
Groupby/resample/rolling
10731083
^^^^^^^^^^^^^^^^^^^^^^^^
10741084
- Bug in :meth:`.GroupBy.agg` with :class:`PeriodDtype` columns incorrectly casting results too aggressively (:issue:`38254`)
@@ -1140,22 +1150,19 @@ Reshaping
11401150

11411151
Sparse
11421152
^^^^^^
1143-
11441153
- Bug in :meth:`DataFrame.sparse.to_coo` raising a ``KeyError`` with columns that are a numeric :class:`Index` without a ``0`` (:issue:`18414`)
11451154
- Bug in :meth:`SparseArray.astype` with ``copy=False`` producing incorrect results when going from integer dtype to floating dtype (:issue:`34456`)
11461155
- Bug in :meth:`SparseArray.max` and :meth:`SparseArray.min` would always return an empty result (:issue:`40921`)
11471156

11481157
ExtensionArray
11491158
^^^^^^^^^^^^^^
1150-
11511159
- Bug in :meth:`DataFrame.where` when ``other`` is a Series with an :class:`ExtensionDtype` (:issue:`38729`)
11521160
- Fixed bug where :meth:`Series.idxmax`, :meth:`Series.idxmin`, :meth:`Series.argmax`, and :meth:`Series.argmin` would fail when the underlying data is an :class:`ExtensionArray` (:issue:`32749`, :issue:`33719`, :issue:`36566`)
11531161
- Fixed bug where some properties of subclasses of :class:`PandasExtensionDtype` where improperly cached (:issue:`40329`)
11541162
- Bug in :meth:`DataFrame.mask` where masking a DataFrame with an :class:`ExtensionDtype` raises a ``ValueError`` (:issue:`40941`)
11551163

11561164
Styler
11571165
^^^^^^
1158-
11591166
- Bug in :class:`.Styler` where the ``subset`` argument in methods raised an error for some valid MultiIndex slices (:issue:`33562`)
11601167
- :class:`.Styler` rendered HTML output has seen minor alterations to support w3 good code standards (:issue:`39626`)
11611168
- Bug in :class:`.Styler` where rendered HTML was missing a column class identifier for certain header cells (:issue:`39716`)
@@ -1165,7 +1172,6 @@ Styler
11651172
- Bug in :class:`Styler.where` where ``kwargs`` were not passed to the applicable callable (:issue:`40845`)
11661173
- Bug in :class:`.Styler` causing CSS to duplicate on multiple renders (:issue:`39395`, :issue:`40334`)
11671174

1168-
11691175
Other
11701176
^^^^^
11711177
- Bug in :class:`Index` constructor sometimes silently ignoring a specified ``dtype`` (:issue:`38879`)

0 commit comments

Comments
 (0)