parameters: (
      *,
      obj: FrameOrSeries,
      include: str | Sequence[str] | None,
      exclude: str | Sequence[str] | None,
      datetime_is_numeric: bool,
      percentiles: Sequence[float] | None,
  )
return_statement: return cast(FrameOrSeries, result)
docstring: Describe series or dataframe.
  
      Called from pandas.core.generic.NDFrame.describe()
  
      Parameters
      ----------
      obj: DataFrame or Series
          Either dataframe or series to be described.
      include : 'all', list-like of dtypes or None (default), optional
          A white list of data types to include in the result. Ignored for ``Series``.
      exclude : list-like of dtypes or None (default), optional,
          A black list of data types to omit from the result. Ignored for ``Series``.
      datetime_is_numeric : bool, default False
          Whether to treat datetime dtypes as numeric.
      percentiles : list-like of numbers, optional
          The percentiles to include in the output. All should fall between 0 and 1.
          The default is ``[.25, .5, .75]``, which returns the 25th, 50th, and
          75th percentiles.
  
      Returns
      -------
      Dataframe or series description.
docstring_summary: Describe series or dataframe.
docstring_tokens: Describe series or dataframe .
function: def describe_ndframe(
      *,
      obj: FrameOrSeries,
      include: str | Sequence[str] | None,
      exclude: str | Sequence[str] | None,
      datetime_is_numeric: bool,
      percentiles: Sequence[float] | None,
  ) -> FrameOrSeries:
      """Describe series or dataframe.
  
      Called from pandas.core.generic.NDFrame.describe()
  
      Parameters
      ----------
      obj: DataFrame or Series
          Either dataframe or series to be described.
      include : 'all', list-like of dtypes or None (default), optional
          A white list of data types to include in the result. Ignored for ``Series``.
      exclude : list-like of dtypes or None (default), optional,
          A black list of data types to omit from the result. Ignored for ``Series``.
      datetime_is_numeric : bool, default False
          Whether to treat datetime dtypes as numeric.
      percentiles : list-like of numbers, optional
          The percentiles to include in the output. All should fall between 0 and 1.
          The default is ``[.25, .5, .75]``, which returns the 25th, 50th, and
          75th percentiles.
  
      Returns
      -------
      Dataframe or series description.
      """
      percentiles = refine_percentiles(percentiles)
  
      describer: NDFrameDescriberAbstract
      if obj.ndim == 1:
          describer = SeriesDescriber(
              obj=cast("Series", obj),
              datetime_is_numeric=datetime_is_numeric,
          )
      else:
          describer = DataFrameDescriber(
              obj=cast("DataFrame", obj),
              include=include,
              exclude=exclude,
              datetime_is_numeric=datetime_is_numeric,
          )
  
      result = describer.describe(percentiles=percentiles)
      return cast(FrameOrSeries, result)
function_tokens: def describe_ndframe ( * , obj : FrameOrSeries , include : str | Sequence [ str ] | None , exclude : str | Sequence [ str ] | None , datetime_is_numeric : bool , percentiles : Sequence [ float ] | None , ) -> FrameOrSeries : percentiles = refine_percentiles ( percentiles ) describer : NDFrameDescriberAbstract if obj . ndim == 1 : describer = SeriesDescriber ( obj = cast ( "Series" , obj ) , datetime_is_numeric = datetime_is_numeric , ) else : describer = DataFrameDescriber ( obj = cast ( "DataFrame" , obj ) , include = include , exclude = exclude , datetime_is_numeric = datetime_is_numeric , ) result = describer . describe ( percentiles = percentiles ) return cast ( FrameOrSeries , result )