class_docstr: Date/Time methods for pandas-on-Spark Series
class_docstr_tok: ["Date\/Time","methods","for","pandas-on-Spark","Series"]
docstr: Return the day names of the series with specified locale.
  
  Parameters
  ----------
  locale : str, optional
      Locale determining the language in which to return the day name.
      Default is English locale.
  
  Returns
  -------
  Series
      Series of day names.
  
  Examples
  --------
  >>> series = ps.Series(pd.date_range(start='2018-01-01', freq='D', periods=3))
  >>> series
  0   2018-01-01
  1   2018-01-02
  2   2018-01-03
  dtype: datetime64[ns]
  
  >>> series.dt.day_name()
  0       Monday
  1      Tuesday
  2    Wednesday
  dtype: object
docstr_tok: ["Return","the","day","names","of","the","series","with","specified","locale",".","Parameters","--","--","--","--","--","locale",":","str",",","optional","Locale","determining","the","language","in","which","to","return","the","day","name",".","Default","is","English","locale",".","Returns","--","--","--","-","Series","Series","of","day","names",".","Examples","--","--","--","--",">",">",">","series","=","ps.Series","(","pd.date_range","(","start='2018-01-01","'",",","freq=","'D","'",",","periods=3",")",")",">",">",">","series","0","2018-01-01","1","2018-01-02","2","2018-01-03","dtype",":","datetime64","[","ns","]",">",">",">","series.dt.day_name","(",")","0","Monday","1","Tuesday","2","Wednesday","dtype",":","object"]
code: def day_name(self, locale: Optional[str] = None) -> "ps.Series":
      """
      Return the day names of the series with specified locale.
  
      Parameters
      ----------
      locale : str, optional
          Locale determining the language in which to return the day name.
          Default is English locale.
  
      Returns
      -------
      Series
          Series of day names.
  
      Examples
      --------
      >>> series = ps.Series(pd.date_range(start='2018-01-01', freq='D', periods=3))
      >>> series
      0   2018-01-01
      1   2018-01-02
      2   2018-01-03
      dtype: datetime64[ns]
  
      >>> series.dt.day_name()
      0       Monday
      1      Tuesday
      2    Wednesday
      dtype: object
      """
  
      def pandas_day_name(s) -> ps.Series[str]:  # type: ignore[no-untyped-def]
          return s.dt.day_name(locale=locale)
  
      return self._data.pandas_on_spark.transform_batch(pandas_day_name)
  
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 35 for calling the DatetimeMethods obj's underlying member method code with example usage: obj.day_name(locale) and returns: self, s