class_docstr: Pandas ExtensionArray for timedelta data.
  
  .. versionadded:: 0.24.0
  
  .. 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.
class_docstr_tok: ["Pandas","ExtensionArray","for","timedelta","data",".","..","versionadded",":",":","0.24.0","..","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","."]
docstr: Return total duration of each element expressed in seconds.
  
  This method is available directly on TimedeltaArray, TimedeltaIndex
  and on Series containing timedelta values under the ``.dt`` namespace.
  
  Returns
  -------
  seconds : [ndarray, Float64Index, Series]
      When the calling object is a TimedeltaArray, the return type
      is ndarray.  When the calling object is a TimedeltaIndex,
      the return type is a Float64Index. When the calling object
      is a Series, the return type is Series of type `float64` whose
      index is the same as the original.
  
  See Also
  --------
  datetime.timedelta.total_seconds : Standard library version
      of this method.
  TimedeltaIndex.components : Return a DataFrame with components of
      each Timedelta.
  
  Examples
  --------
  **Series**
  
  >>> s = pd.Series(pd.to_timedelta(np.arange(5), unit='d'))
  >>> s
  0   0 days
  1   1 days
  2   2 days
  3   3 days
  4   4 days
  dtype: timedelta64[ns]
  
  >>> s.dt.total_seconds()
  0         0.0
  1     86400.0
  2    172800.0
  3    259200.0
  4    345600.0
  dtype: float64
  
  **TimedeltaIndex**
  
  >>> idx = pd.to_timedelta(np.arange(5), unit='d')
  >>> idx
  TimedeltaIndex(['0 days', '1 days', '2 days', '3 days', '4 days'],
                 dtype='timedelta64[ns]', freq=None)
  
  >>> idx.total_seconds()
  Float64Index([0.0, 86400.0, 172800.0, 259200.00000000003, 345600.0],
               dtype='float64')
docstr_tok: ["Return","total","duration","of","each","element","expressed","in","seconds",".","This","method","is","available","directly","on","TimedeltaArray",",","TimedeltaIndex","and","on","Series","containing","timedelta","values","under","the","``",".dt","``","namespace",".","Returns","--","--","--","-","seconds",":","[","ndarray",",","Float64Index",",","Series","]","When","the","calling","object","is","a","TimedeltaArray",",","the","return","type","is","ndarray",".","When","the","calling","object","is","a","TimedeltaIndex",",","the","return","type","is","a","Float64Index",".","When","the","calling","object","is","a","Series",",","the","return","type","is","Series","of","type","`","float64","`","whose","index","is","the","same","as","the","original",".","See","Also","--","--","--","--","datetime.timedelta.total_seconds",":","Standard","library","version","of","this","method",".","TimedeltaIndex.components",":","Return","a","DataFrame","with","components","of","each","Timedelta",".","Examples","--","--","--","--","*","*","Series","*","*",">",">",">","s","=","pd.Series","(","pd.to_timedelta","(","np.arange","(","5",")",",","unit='d","'",")",")",">",">",">","s","0","0","days","1","1","days","2","2","days","3","3","days","4","4","days","dtype",":","timedelta64","[","ns","]",">",">",">","s.dt.total_seconds","(",")","0","0.0","1","86400.0","2","172800.0","3","259200.0","4","345600.0","dtype",":","float64","*","*","TimedeltaIndex","*","*",">",">",">","idx","=","pd.to_timedelta","(","np.arange","(","5",")",",","unit='d","'",")",">",">",">","idx","TimedeltaIndex","(","[","'","0","days","'",",","'","1","days","'",",","'","2","days","'",",","'","3","days","'",",","'","4","days","'","]",",","dtype='timedelta64","[","ns","]","'",",","freq=None",")",">",">",">","idx.total_seconds","(",")","Float64Index","(","[","0.0",",","86400.0",",","172800.0",",","259200.00000000003",",","345600.0","]",",","dtype='float64","'",")"]
code: def total_seconds(self):
      """
      Return total duration of each element expressed in seconds.
  
      This method is available directly on TimedeltaArray, TimedeltaIndex
      and on Series containing timedelta values under the ``.dt`` namespace.
  
      Returns
      -------
      seconds : [ndarray, Float64Index, Series]
          When the calling object is a TimedeltaArray, the return type
          is ndarray.  When the calling object is a TimedeltaIndex,
          the return type is a Float64Index. When the calling object
          is a Series, the return type is Series of type `float64` whose
          index is the same as the original.
  
      See Also
      --------
      datetime.timedelta.total_seconds : Standard library version
          of this method.
      TimedeltaIndex.components : Return a DataFrame with components of
          each Timedelta.
  
      Examples
      --------
      **Series**
  
      >>> s = pd.Series(pd.to_timedelta(np.arange(5), unit='d'))
      >>> s
      0   0 days
      1   1 days
      2   2 days
      3   3 days
      4   4 days
      dtype: timedelta64[ns]
  
      >>> s.dt.total_seconds()
      0         0.0
      1     86400.0
      2    172800.0
      3    259200.0
      4    345600.0
      dtype: float64
  
      **TimedeltaIndex**
  
      >>> idx = pd.to_timedelta(np.arange(5), unit='d')
      >>> idx
      TimedeltaIndex(['0 days', '1 days', '2 days', '3 days', '4 days'],
                     dtype='timedelta64[ns]', freq=None)
  
      >>> idx.total_seconds()
      Float64Index([0.0, 86400.0, 172800.0, 259200.00000000003, 345600.0],
                   dtype='float64')
      """
      return self._maybe_mask_results(1e-9 * self.asi8, fill_value=None)
  
imports: from __future__ import division
  from datetime import timedelta
  import textwrap
  import warnings
  import numpy
  from pandas._libs import lib, tslibs
  from pandas._libs.tslibs import NaT, Timedelta, Timestamp, iNaT
  from pandas._libs.tslibs.fields import get_timedelta_field
  from pandas._libs.tslibs.timedeltas import array_to_timedelta64, parse_timedelta_unit, precision_from_unit
  import pandas.compat
  from pandas.util._decorators import Appender
  from pandas.core.dtypes.common import _NS_DTYPE, _TD_DTYPE, ensure_int64, is_datetime64_dtype, is_dtype_equal, is_float_dtype, is_integer_dtype, is_list_like, is_object_dtype, is_scalar, is_string_dtype, is_timedelta64_dtype, is_timedelta64_ns_dtype, pandas_dtype
  from pandas.core.dtypes.dtypes import DatetimeTZDtype
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries, ABCTimedeltaIndex
  from pandas.core.dtypes.missing import isna
  from pandas.core import ops
  from pandas.core.algorithms import checked_add_with_arr
  import pandas.core.common
  from pandas.tseries.frequencies import to_offset
  from pandas.tseries.offsets import Tick
  from .None import datetimelike
label_desc: Use image node_id 31 for calling the TimedeltaArray obj's underlying member method code with example usage: obj.total_seconds() and returns: self