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