Skip to content

Commit f0573e1

Browse files
committed
Replaced long entry with single entry
1 parent ff2adc6 commit f0573e1

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

Diff for: doc/source/whatsnew/v3.0.0.rst

+4-16
Original file line numberDiff line numberDiff line change
@@ -151,23 +151,10 @@ These improvements also fixed certain bugs in groupby:
151151
- :meth:`.DataFrameGroupBy.sum` would have incorrect values when there are multiple groupings, unobserved groups, and non-numeric data (:issue:`43891`)
152152
- :meth:`.DataFrameGroupBy.value_counts` would produce incorrect results when used with some categorical and some non-categorical groupings and ``observed=False`` (:issue:`56016`)
153153

154-
.. _whatsnew_300.notable_bug_fixes.corr_bounded:
154+
.. _whatsnew_300.notable_bug_fixes.notable_bug_fix2:
155155

156-
Improved handling of numerical precision errors in ``DataFrame.corr``
157-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158-
Fixed an issue in :meth:`.DataFrame.corr` where numerical precision errors could cause correlation values to
159-
exceed 1.0 when dealing with data having very small variances. Correlation coefficients are now properly
160-
bounded to the valid range of [-1.0, 1.0] (:issue:`61120`).
161-
162-
Previously, the code below would return ``1.1547005383792517``. It now returns ``1.0`` as expected.
163-
164-
.. ipython:: python
165-
166-
data = pd.DataFrame(dict(
167-
x=[0, 1],
168-
y=[1.35951, 1.3595100000000007]
169-
))
170-
data.corr().max().max()
156+
notable_bug_fix2
157+
^^^^^^^^^^^^^^^^
171158

172159
.. ---------------------------------------------------------------------------
173160
.. _whatsnew_300.api_breaking:
@@ -686,6 +673,7 @@ Timezones
686673

687674
Numeric
688675
^^^^^^^
676+
- Bug in :meth:`DataFrame.corr` where numerical precision errors resulted in correlations above ``1.0`` (:issue:`61120`)
689677
- Bug in :meth:`DataFrame.quantile` where the column type was not preserved when ``numeric_only=True`` with a list-like ``q`` produced an empty result (:issue:`59035`)
690678
- Bug in ``np.matmul`` with :class:`Index` inputs raising a ``TypeError`` (:issue:`57079`)
691679

0 commit comments

Comments
 (0)