Skip to content

Commit d589aba

Browse files
DOC: fix ES01 for pandas.DataFrame.set_flags and pandas.Series.set_flags (#60891)
1 parent 4511251 commit d589aba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/core/generic.py

+6
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ def set_flags(
406406
"""
407407
Return a new object with updated flags.
408408
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+
409415
Parameters
410416
----------
411417
copy : bool, default False

0 commit comments

Comments
 (0)