class_docstr: Date/Time methods for pandas-on-Spark Series
class_docstr_tok: ["Date\/Time","methods","for","pandas-on-Spark","Series"]
docstr: The quarter of the date.
docstr_tok: ["The","quarter","of","the","date","."]
code: def quarter(self) -> "ps.Series":
      """
      The quarter of the date.
      """
  
      def pandas_quarter(s) -> ps.Series[np.int32]:  # type: ignore[no-untyped-def]
          return s.dt.quarter
  
      return self._data.pandas_on_spark.transform_batch(pandas_quarter)
  
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 17 for calling the DatetimeMethods obj's underlying member method code with example usage: obj.quarter() and returns: self, s