class_docstr: List methods for Series
class_docstr_tok: ["List","methods","for","Series"]
docstr: From a Series of (possibly nested) lists, obtain the elements from
  the innermost lists as a flat Series (one value per row).
  
  Returns
  -------
  Series or Index
  
  Examples
  --------
  >>> a = cudf.Series([[[1, None], [3, 4]], None, [[5, 6]]])
  >>> a.list.leaves
  0       1
  1    <NA>
  2       3
  3       4
  4       5
  5       6
  dtype: int64
docstr_tok: ["From","a","Series","of","(","possibly","nested",")","lists",",","obtain","the","elements","from","the","innermost","lists","as","a","flat","Series","(","one","value","per","row",")",".","Returns","--","--","--","-","Series","or","Index","Examples","--","--","--","--",">",">",">","a","=","cudf.Series","(","[","[","[","1",",","None","]",",","[","3",",","4","]","]",",","None",",","[","[","5",",","6","]","]","]",")",">",">",">","a.list.leaves","0","1","1","<","NA",">","2","3","3","4","4","5","5","6","dtype",":","int64"]
code: def leaves(self) -> ParentType:
      """
      From a Series of (possibly nested) lists, obtain the elements from
      the innermost lists as a flat Series (one value per row).
  
      Returns
      -------
      Series or Index
  
      Examples
      --------
      >>> a = cudf.Series([[[1, None], [3, 4]], None, [[5, 6]]])
      >>> a.list.leaves
      0       1
      1    <NA>
      2       3
      3       4
      4       5
      5       6
      dtype: int64
      """
      return self._return_or_inplace(
          self._column.leaves(), retain_index=False
      )
  
imports: from __future__ import annotations
  from functools import cached_property
  from typing import List, Optional, Sequence, Tuple, Union
  import numpy
  import pyarrow
  from typing_extensions import Self
  import cudf
  from cudf._lib.copying import segmented_gather
  from cudf._lib.lists import concatenate_list_elements, concatenate_rows, contains_scalar, count_elements, distinct, extract_element_column, extract_element_scalar, index_of_column, index_of_scalar, sort_lists
  from cudf._lib.strings.convert.convert_lists import format_list_column
  from cudf._lib.types import size_type_dtype
  from cudf._typing import ColumnBinaryOperand, ColumnLike, Dtype, ScalarLike
  from cudf.api.types import _is_non_decimal_numeric_dtype, is_scalar
  from cudf.core.column import ColumnBase, as_column, column
  from cudf.core.column.methods import ColumnMethods, ParentType
  from cudf.core.dtypes import ListDtype
  from cudf.core.missing import NA
label_desc: Use image node_id 5 for calling the ListMethods obj's underlying member method code with example usage: obj.leaves() and returns: self