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