File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed
Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -6354,23 +6354,15 @@ def astype(
63546354 a numpy.dtype or Python type to cast one or more of the DataFrame's
63556355 columns to column-specific types.
63566356 copy : bool, default False
6357- Return a copy when ``copy=True`` (be very careful setting
6358- ``copy=False`` as changes to values then may propagate to other
6359- pandas objects).
6357+ .. deprecated:: 3.0.0
63606358
6361- .. note::
6362- The `copy` keyword will change behavior in pandas 3.0.
6363- `Copy-on-Write
6359+ This keyword is ignored and will be removed in pandas 4.0. Since
6360+ pandas 3.0, this method always returns a new object using a lazy
6361+ copy mechanism that defers copies until necessary
6362+ (Copy-on-Write). See the `user guide on Copy-on-Write
63646363 <https://pandas.pydata.org/docs/dev/user_guide/copy_on_write.html>`__
6365- will be enabled by default, which means that all methods with a
6366- `copy` keyword will use a lazy copy mechanism to defer the copy and
6367- ignore the `copy` keyword. The `copy` keyword will be removed in a
6368- future version of pandas.
6369-
6370- You can already get the future behavior and improvements through
6371- enabling copy on write ``pd.options.mode.copy_on_write = True``
6364+ for more details.
63726365
6373- .. deprecated:: 3.0.0
63746366 errors : {'raise', 'ignore'}, default 'raise'
63756367 Control raising of exceptions on invalid data for provided dtype.
63766368
You can’t perform that action at this time.
0 commit comments