class_docstr: String methods for pandas-on-Spark Series
class_docstr_tok: ["String","methods","for","pandas-on-Spark","Series"]
docstr: Convert Strings in the series to be title case.
  
  Examples
  --------
  >>> s = ps.Series(['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe'])
  >>> s
  0                 lower
  1              CAPITALS
  2    this is a sentence
  3              SwApCaSe
  dtype: object
  
  >>> s.str.title()
  0                 Lower
  1              Capitals
  2    This Is A Sentence
  3              Swapcase
  dtype: object
code: def title(self) -> "ps.Series":
      """
      Convert Strings in the series to be title case.
  
      Examples
      --------
      >>> s = ps.Series(['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe'])
      >>> s
      0                 lower
      1              CAPITALS
      2    this is a sentence
      3              SwApCaSe
      dtype: object
  
      >>> s.str.title()
      0                 Lower
      1              Capitals
      2    This Is A Sentence
      3              Swapcase
      dtype: object
      """
  
      def pandas_title(s) -> ps.Series[str]:  # type: ignore[no-untyped-def]
          return s.str.title()
  
      return self._data.pandas_on_spark.transform_batch(pandas_title)
  
imports: from typing import Any, Callable, Dict, List, Optional, Union, cast, no_type_check
  import numpy
  import pandas
  from pyspark.sql.types import StringType, BinaryType, ArrayType, LongType, MapType
  from pyspark.sql import functions
  from pyspark.sql.functions import pandas_udf
  import pyspark.pandas
label_desc: Use image node_id 3 for calling the StringMethods obj's underlying member method code with example usage: obj.title() and returns: self, s