class_docstr: Flags that apply to pandas objects.
  
  .. versionadded:: 1.2.0
  
  Parameters
  ----------
  obj : Series or DataFrame
      The object these flags are associated with.
  allows_duplicate_labels : bool, default True
      Whether to allow duplicate labels in this object. By default,
      duplicate labels are permitted. Setting this to ``False`` will
      cause an :class:`errors.DuplicateLabelError` to be raised when
      `index` (or columns for DataFrame) is not unique, or any
      subsequent operation on introduces duplicates.
      See :ref:`duplicates.disallow` for more.
  
      .. warning::
  
         This is an experimental feature. Currently, many methods fail to
         propagate the ``allows_duplicate_labels`` value. In future versions
         it is expected that every method taking or returning one or more
         DataFrame or Series objects will propagate ``allows_duplicate_labels``.
  
  Notes
  -----
  Attributes can be set in two ways
  
  >>> df = pd.DataFrame()
  >>> df.flags
  <Flags(allows_duplicate_labels=True)>
  >>> df.flags.allows_duplicate_labels = False
  >>> df.flags
  <Flags(allows_duplicate_labels=False)>
  
  >>> df.flags['allows_duplicate_labels'] = True
  >>> df.flags
  <Flags(allows_duplicate_labels=True)>
code: def __repr__(self) -> str:
      return f"<Flags(allows_duplicate_labels={self.allows_duplicate_labels})>"
  
file_path: catboost/contrib/python/pandas/py3/pandas/core/flags.py
imports: from __future__ import annotations
  import weakref
label_desc: Use image node_id 6 for calling the Flags obj's underlying member method code with example usage: obj.__repr__() and returns: str, self, str