Skip to content

Commit 0b156d6

Browse files
DOC: some small edits to 3.0 release notes (#63379)
1 parent c16f459 commit 0b156d6

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ and how to adapt your code to the new default.
8080

8181
.. _whatsnew_300.enhancements.copy_on_write:
8282

83-
Copy-on-Write
84-
^^^^^^^^^^^^^
83+
Consistent copy/view behaviour with Copy-on-Write
84+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8585

8686
The new "copy-on-write" behaviour in pandas 3.0 brings changes in behavior in
8787
how pandas operates with respect to copies and views. A summary of the changes:
@@ -101,9 +101,10 @@ copy or a view depended on the exact operation performed, which was often
101101
confusing).
102102

103103
Because every single indexing step now behaves as a copy, this also means that
104-
"chained assignment" (updating a DataFrame with multiple setitem steps) will
105-
stop working. Because this now consistently never works, the
106-
``SettingWithCopyWarning`` is removed.
104+
**"chained assignment"** (updating a DataFrame with multiple setitem steps)
105+
**will stop working**. Because this now consistently never works, the
106+
``SettingWithCopyWarning`` is removed, and defensive ``.copy()`` calls to
107+
silence the warning are no longer needed.
107108

108109
The new behavioral semantics are explained in more detail in the
109110
:ref:`user guide about Copy-on-Write <copy_on_write>`.

web/pandas/community/blog/pandas-3.0-release-candidate.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ release candidate now](#call-to-action-test-the-release-candidate).
1414

1515
pandas 3.0 introduces several major enhancements:
1616

17-
- **Dedicated string data type by default**: String columns are now inferred as
17+
- **Dedicated string data type by default**: string columns are now inferred as
1818
the new `str` dtype instead of `object`, providing better performance and type
1919
safety
2020
- **Consistent copy/view behaviour with Copy-on-Write (CoW)** (a.k.a. getting
21-
rid of the SettingWithCopyWarning): More predictable and consistent behavior
21+
rid of the SettingWithCopyWarning): more predictable and consistent behavior
2222
for all operations, with improved performance through avoiding unnecessary
2323
copies
24-
- **New `pd.col` syntax**: Initial support for `pd.col()` as a simplified syntax
24+
- **New `pd.col` syntax**: initial support for `pd.col()` as a simplified syntax
2525
for creating callables in `DataFrame.assign`
2626

27-
Together with a lot of other improvements and bug fixes. You can find the
28-
complete list of changes in our
27+
Further, pandas 3.0 includes a lot of other improvements and bug fixes. You can
28+
find the complete list of changes in our
2929
[release notes](https://pandas.pydata.org/docs/dev/whatsnew/v3.0.0.html).
3030

3131
## Important changes requiring code updates

0 commit comments

Comments
 (0)