We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4511251 commit d589abaCopy full SHA for d589aba
pandas/core/generic.py
@@ -406,6 +406,12 @@ def set_flags(
406
"""
407
Return a new object with updated flags.
408
409
+ This method creates a shallow copy of the original object, preserving its
410
+ underlying data while modifying its global flags. In particular, it allows
411
+ you to update properties such as whether duplicate labels are permitted. This
412
+ behavior is especially useful in method chains, where one wishes to
413
+ adjust DataFrame or Series characteristics without altering the original object.
414
+
415
Parameters
416
----------
417
copy : bool, default False
0 commit comments