class_docstr: Pandas ExtensionArray for timedelta data.
  
  .. warning::
  
     TimedeltaArray is currently experimental, and its API may change
     without warning. In particular, :attr:`TimedeltaArray.dtype` is
     expected to change to be an instance of an ``ExtensionDtype``
     subclass.
  
  Parameters
  ----------
  values : array-like
      The timedelta data.
  
  dtype : numpy.dtype
      Currently, only ``numpy.dtype("timedelta64[ns]")`` is accepted.
  freq : Offset, optional
  copy : bool, default False
      Whether to copy the underlying array of data.
  
  Attributes
  ----------
  None
  
  Methods
  -------
  None
  
  Examples
  --------
  >>> pd.arrays.TimedeltaArray._from_sequence(pd.TimedeltaIndex(['1h', '2h']))
  <TimedeltaArray>
  ['0 days 01:00:00', '0 days 02:00:00']
  Length: 2, dtype: timedelta64[ns]
class_docstr_tok: ["Pandas","ExtensionArray","for","timedelta","data",".","..","warning",":",":","TimedeltaArray","is","currently","experimental",",","and","its","API","may","change","without","warning",".","In","particular",",",":","attr",":","`","TimedeltaArray.dtype","`","is","expected","to","change","to","be","an","instance","of","an","``","ExtensionDtype","``","subclass",".","Parameters","--","--","--","--","--","values",":","array-like","The","timedelta","data",".","dtype",":","numpy.dtype","Currently",",","only","``","numpy.dtype","(","``","timedelta64","[","ns","]","''",")","``","is","accepted",".","freq",":","Offset",",","optional","copy",":","bool",",","default","False","Whether","to","copy","the","underlying","array","of","data",".","Attributes","--","--","--","--","--","None","Methods","--","--","--","-","None","Examples","--","--","--","--",">",">",">","pd.arrays.TimedeltaArray._from_sequence","(","pd.TimedeltaIndex","(","[","'1h","'",",","'2h","'","]",")",")","<","TimedeltaArray",">","[","'","0","days","01:00:00","'",",","'","0","days","02:00:00","'","]","Length",":","2",",","dtype",":","timedelta64","[","ns","]"]
docstr: Return a DataFrame of the individual resolution components of the Timedeltas.
  
  The components (days, hours, minutes seconds, milliseconds, microseconds,
  nanoseconds) are returned as columns in a DataFrame.
  
  Returns
  -------
  DataFrame
  
  Examples
  --------
  >>> tdelta_idx = pd.to_timedelta(['1 day 3 min 2 us 42 ns'])
  >>> tdelta_idx
  TimedeltaIndex(['1 days 00:03:00.000002042'],
                 dtype='timedelta64[ns]', freq=None)
  >>> tdelta_idx.components
     days  hours  minutes  seconds  milliseconds  microseconds  nanoseconds
  0     1      0        3        0             0             2           42
docstr_tok: ["Return","a","DataFrame","of","the","individual","resolution","components","of","the","Timedeltas",".","The","components","(","days",",","hours",",","minutes","seconds",",","milliseconds",",","microseconds",",","nanoseconds",")","are","returned","as","columns","in","a","DataFrame",".","Returns","--","--","--","-","DataFrame","Examples","--","--","--","--",">",">",">","tdelta_idx","=","pd.to_timedelta","(","[","'","1","day","3","min","2","us","42","ns","'","]",")",">",">",">","tdelta_idx","TimedeltaIndex","(","[","'","1","days","00:03:00.000002042","'","]",",","dtype='timedelta64","[","ns","]","'",",","freq=None",")",">",">",">","tdelta_idx.components","days","hours","minutes","seconds","milliseconds","microseconds","nanoseconds","0","1","0","3","0","0","2","42"]
code: def components(self) -> DataFrame:
      """
      Return a DataFrame of the individual resolution components of the Timedeltas.
  
      The components (days, hours, minutes seconds, milliseconds, microseconds,
      nanoseconds) are returned as columns in a DataFrame.
  
      Returns
      -------
      DataFrame
  
      Examples
      --------
      >>> tdelta_idx = pd.to_timedelta(['1 day 3 min 2 us 42 ns'])
      >>> tdelta_idx
      TimedeltaIndex(['1 days 00:03:00.000002042'],
                     dtype='timedelta64[ns]', freq=None)
      >>> tdelta_idx.components
         days  hours  minutes  seconds  milliseconds  microseconds  nanoseconds
      0     1      0        3        0             0             2           42
      """
      from pandas import DataFrame
  
      columns = [
          "days",
          "hours",
          "minutes",
          "seconds",
          "milliseconds",
          "microseconds",
          "nanoseconds",
      ]
      hasnans = self._hasna
      if hasnans:
  
          def f(x):
              if isna(x):
                  return [np.nan] * len(columns)
              return x.components
  
      else:
  
          def f(x):
              return x.components
  
      result = DataFrame([f(x) for x in self], columns=columns)
      if not hasnans:
          result = result.astype("int64")
      return result
  
imports: from __future__ import annotations
  from datetime import timedelta
  import operator
  from typing import TYPE_CHECKING, cast
  import numpy
  from pandas._libs import lib, tslibs
  from pandas._libs.tslibs import NaT, NaTType, Tick, Timedelta, astype_overflowsafe, get_supported_dtype, iNaT, is_supported_dtype, periods_per_second
  from pandas._libs.tslibs.conversion import cast_from_unit_vectorized
  from pandas._libs.tslibs.fields import get_timedelta_days, get_timedelta_field
  from pandas._libs.tslibs.timedeltas import array_to_timedelta64, floordiv_object_array, ints_to_pytimedelta, parse_timedelta_unit, truediv_object_array
  from pandas.compat.numpy import function
  from pandas.util._validators import validate_endpoints
  from pandas.core.dtypes.common import TD64NS_DTYPE, is_float_dtype, is_integer_dtype, is_object_dtype, is_scalar, is_string_dtype, pandas_dtype
  from pandas.core.dtypes.dtypes import ExtensionDtype
  from pandas.core.dtypes.missing import isna
  from pandas.core import nanops, roperator
  from pandas.core.array_algos import datetimelike_accumulations
  from pandas.core.arrays import datetimelike
  from pandas.core.arrays._ranges import generate_regular_range
  import pandas.core.common
  from pandas.core.ops.common import unpack_zerodim_and_defer
  import textwrap
label_desc: Use image node_id 37 for calling the TimedeltaArray obj's underlying member method code with example usage: obj.components() and returns: result, x, x, unknown