docstr: Computes the length of each element in the Series/Index.
  
  Returns
  -------
  Series or Index
  
  Examples
  --------
  >>> s = cudf.Series([[1, 2, 3], None, [4, 5]])
  >>> ds = dask_cudf.from_cudf(s, 2)
  >>> ds
  0    [1, 2, 3]
  1         None
  2       [4, 5]
  dtype: list
  >>> ds.list.len().compute()
  0       3
  1    <NA>
  2       2
  dtype: int32
docstr_tok: ["Computes","the","length","of","each","element","in","the","Series\/Index",".","Returns","--","--","--","-","Series","or","Index","Examples","--","--","--","--",">",">",">","s","=","cudf.Series","(","[","[","1",",","2",",","3","]",",","None",",","[","4",",","5","]","]",")",">",">",">","ds","=","dask_cudf.from_cudf","(","s",",","2",")",">",">",">","ds","0","[","1",",","2",",","3","]","1","None","2","[","4",",","5","]","dtype",":","list",">",">",">","ds.list.len","(",")",".compute","(",")","0","3","1","<","NA",">","2","2","dtype",":","int32"]
code: def len(self):
      """
      Computes the length of each element in the Series/Index.
  
      Returns
      -------
      Series or Index
  
      Examples
      --------
      >>> s = cudf.Series([[1, 2, 3], None, [4, 5]])
      >>> ds = dask_cudf.from_cudf(s, 2)
      >>> ds
      0    [1, 2, 3]
      1         None
      2       [4, 5]
      dtype: list
      >>> ds.list.len().compute()
      0       3
      1    <NA>
      2       2
      dtype: int32
      """
      return self.d_series.map_partitions(
          lambda s: s.list.len(), meta=self.d_series._meta
      )
  
file_path: cudf/python/dask_cudf/dask_cudf/accessors.py
label_desc: Use image node_id 2 for calling the ListMethods obj's underlying member method code with example usage: obj.len() and returns: self