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

        Return an Index of tuples of the form (left, right).

        This method extracts the bounds of each interval as a tuple,
        useful for iteration or conversion to other data structures.

        Parameters
        ----------
        na_tuple : bool, default True
            If ``True``, return ``NA`` as a tuple ``(nan, nan)``. If ``False``,
            just return ``NA`` as ``nan``.

        Returns
        -------
        Index
            An Index of tuples representing the intervals.

        See Also
        --------
        arrays.IntervalArray.to_tuples : Analogous method for IntervalArray.

        Examples
        --------
        >>> idx = pd.interval_range(start=0, end=2)
        >>> idx
        IntervalIndex([(0, 1], (1, 2]], dtype='interval[int64, right]')
        >>> idx.to_tuples()
        Index([(0, 1), (1, 2)], dtype='object')
        
=== parse numpydoc
short_description: 'Return an Index of tuples of the form (left, right).'
long_description: |
  This method extracts the bounds of each interval as a tuple,
  useful for iteration or conversion to other data structures.
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringParam
  description: |
    If ``True``, return ``NA`` as a tuple ``(nan, nan)``. If ``False``,
    just return ``NA`` as ``nan``.
  kind: param
  key: 'param'
  arg_name: 'na_tuple'
  type_name: 'bool'
  is_optional: True
  default: 'True'
  raw_type_name: 'bool, default True'
- DocstringReturns
  description: 'An Index of tuples representing the intervals.'
  kind: returns
  key: 'returns'
  type_name: 'Index'
  is_generator: False
- DocstringMeta
  description: 'arrays.IntervalArray.to_tuples : Analogous method for IntervalArray.'
  kind: text
  key: 'see_also'
  title: 'See Also'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> idx = pd.interval_range(start=0, end=2)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> idx
    IntervalIndex([(0, 1], (1, 2]], dtype='interval[int64, right]')
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> idx.to_tuples()
    Index([(0, 1), (1, 2)], dtype='object')
=== detect
numpydoc
=== compose numpydoc
Return an Index of tuples of the form (left, right).

This method extracts the bounds of each interval as a tuple,
useful for iteration or conversion to other data structures.

Parameters
----------
na_tuple : bool, default True
    If ``True``, return ``NA`` as a tuple ``(nan, nan)``. If ``False``,
    just return ``NA`` as ``nan``.

Returns
-------
Index
    An Index of tuples representing the intervals.

See Also
--------
arrays.IntervalArray.to_tuples : Analogous method for IntervalArray.

Examples
--------
>>> idx = pd.interval_range(start=0, end=2)
>>> idx
IntervalIndex([(0, 1], (1, 2]], dtype='interval[int64, right]')
>>> idx.to_tuples()
Index([(0, 1), (1, 2)], dtype='object')
