File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -6429,6 +6429,18 @@ def astype(
6429
6429
Return a copy when ``copy=True`` (be very careful setting
6430
6430
``copy=False`` as changes to values then may propagate to other
6431
6431
pandas objects).
6432
+
6433
+ .. note::
6434
+ The `copy` keyword will change behavior in pandas 3.0.
6435
+ `Copy-on-Write
6436
+ <https://pandas.pydata.org/docs/dev/user_guide/copy_on_write.html>`__
6437
+ will be enabled by default, which means that all methods with a
6438
+ `copy` keyword will use a lazy copy mechanism to defer the copy and
6439
+ ignore the `copy` keyword. The `copy` keyword will be removed in a
6440
+ future version of pandas.
6441
+
6442
+ You can already get the future behavior and improvements through
6443
+ enabling copy on write ``pd.options.mode.copy_on_write = True``
6432
6444
errors : {'raise', 'ignore'}, default 'raise'
6433
6445
Control raising of exceptions on invalid data for provided dtype.
6434
6446
You can’t perform that action at this time.
0 commit comments