class_docstr: Date/Time methods for pandas-on-Spark Series
class_docstr_tok: ["Date\/Time","methods","for","pandas-on-Spark","Series"]
docstr: The month of the timestamp as January = 1 December = 12.
docstr_tok: ["The","month","of","the","timestamp","as","January","=","1","December","=","12","."]
code: def month(self) -> "ps.Series":
      """
      The month of the timestamp as January = 1 December = 12.
      """
      return self._data.spark.transform(
          lambda c: F.month(c).cast(IntegerType())
      )
  
imports: from typing import Any, Optional, Union, no_type_check
  import numpy
  import pandas
  from pandas.tseries.offsets import DateOffset
  import pyspark.pandas
  import pyspark.sql.functions
  from pyspark.sql.types import DateType, TimestampType, TimestampNTZType, IntegerType
  from pyspark.pandas import DataFrame
  from pyspark.pandas.config import option_context
label_desc: Use image node_id 6 for calling the DatetimeMethods obj's underlying member method code with example usage: obj.month() and returns: self