# pandas 3.1.0 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

        Whether the categories have an ordered relationship.

        When ``True``, comparison operations on the resulting Categorical
        are valid and sort in the order of the categories.

        See Also
        --------
        categories : An Index containing the unique categories allowed.

        Examples
        --------
        >>> cat_type = pd.CategoricalDtype(categories=["a", "b"], ordered=True)
        >>> cat_type.ordered
        True

        >>> cat_type = pd.CategoricalDtype(categories=["a", "b"], ordered=False)
        >>> cat_type.ordered
        False
        
=== parse numpydoc
short_description: 'Whether the categories have an ordered relationship.'
long_description: |
  When ``True``, comparison operations on the resulting Categorical
  are valid and sort in the order of the categories.
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringMeta
  description: 'categories : An Index containing the unique categories allowed.'
  kind: text
  key: 'see_also'
  title: 'See Also'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> cat_type = pd.CategoricalDtype(categories=["a", "b"], ordered=True)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> cat_type.ordered
    True
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> cat_type = pd.CategoricalDtype(categories=["a", "b"], ordered=False)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> cat_type.ordered
    False
=== detect
numpydoc
=== compose numpydoc
Whether the categories have an ordered relationship.

When ``True``, comparison operations on the resulting Categorical
are valid and sort in the order of the categories.

See Also
--------
categories : An Index containing the unique categories allowed.

Examples
--------
>>> cat_type = pd.CategoricalDtype(categories=["a", "b"], ordered=True)
>>> cat_type.ordered
True
>>> cat_type = pd.CategoricalDtype(categories=["a", "b"], ordered=False)
>>> cat_type.ordered
False
