code: def sum(
      self,
      axis=None,
      skipna=True,
      level=None,
      numeric_only=None,
      min_count=0,
  ):
      _array = self.array
      if axis is None or axis == "index":
          axis = 0  # due to https://github.com/pandas-dev/pandas/issues/54547. TODO: remove this when fixed # noqa: E501
      elif axis == "columns":
          axis = 1
      if min_count > 0:
          if ivy.has_nans(_array):
              number_values = _array.size - ivy.sum(ivy.isnan(_array))
          else:
              number_values = _array.size
          if min_count > number_values:
              return ivy.nan
      if skipna:
          ret = ivy.nansum(_array, axis=axis)
      else:
          ret = _array.sum(axis=axis)
      return Series(
          ret,
          index=self.columns if axis in (0, "index") else self.index,
      )
  
file_path: ivy/ivy/functional/frontends/pandas/dataframe.py
imports: from .generic import NDFrame
  import ivy
  from .series import Series
  from ivy.functional.frontends.pandas.index import Index
label_desc: Use image node_id 5 for calling the DataFrame obj's underlying member method code with example usage: obj.sum(axis, skipna, level, numeric_only, min_count) and returns: Series, ivy