Skip to content

Commit

Permalink
DOC: fix ES01 for pandas.Flags (pandas-dev#57563)
Browse files Browse the repository at this point in the history
fix ES01 for pandas.Flags
  • Loading branch information
jordan-d-murphy authored Feb 22, 2024
1 parent 1debaf3 commit 83fec18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.DatetimeIndex.year\
pandas.DatetimeTZDtype.tz\
pandas.DatetimeTZDtype.unit\
pandas.Flags\
pandas.HDFStore.get\
pandas.HDFStore.info\
pandas.HDFStore.keys\
Expand Down
9 changes: 9 additions & 0 deletions pandas/core/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ class Flags:
"""
Flags that apply to pandas objects.
“Flags” differ from “metadata”. Flags reflect properties of the pandas
object (the Series or DataFrame). Metadata refer to properties of the
dataset, and should be stored in DataFrame.attrs.
Parameters
----------
obj : Series or DataFrame
Expand All @@ -30,6 +34,11 @@ class Flags:
it is expected that every method taking or returning one or more
DataFrame or Series objects will propagate ``allows_duplicate_labels``.
See Also
--------
DataFrame.attrs : Dictionary of global attributes of this dataset.
Series.attrs : Dictionary of global attributes of this dataset.
Examples
--------
Attributes can be set in two ways:
Expand Down

0 comments on commit 83fec18

Please sign in to comment.