File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ def is_terminal() -> bool:
423423 # to False. This environment variable can be set for testing.
424424 "warn"
425425 if os .environ .get ("PANDAS_COPY_ON_WRITE" , "0" ) == "warn"
426- else os .environ .get ("PANDAS_COPY_ON_WRITE" , "0 " ) == "1" ,
426+ else os .environ .get ("PANDAS_COPY_ON_WRITE" , "1 " ) == "1" ,
427427 copy_on_write_doc ,
428428 validator = is_one_of_factory ([True , False , "warn" ]),
429429 )
@@ -908,7 +908,8 @@ def register_converter_cb(key: str) -> None:
908908 "mode.copy_on_write" ,
909909 Pandas4Warning ,
910910 msg = (
911- "Copy-on-Write can no longer be disabled, setting to False has no impact. "
912- "This option will be removed in pandas 4.0."
911+ "The 'mode.copy_on_write' option is deprecated. Copy-on-Write can no longer "
912+ "be disabled (it is always enabled with pandas >= 3.0), and setting the option "
913+ "has no impact. This option will be removed in pandas 4.0."
913914 ),
914915)
You can’t perform that action at this time.
0 commit comments