reV.losses.utils.format_month_name
- format_month_name(month_name)[source]
 Format a month name to match the names in the
calendarmodule.In particular, any extra spaces at the beginning or end of the string are stripped, and the name is converted to a title (first letter is uppercase).
- Parameters:
 month_name (str) – Name of month.
- Returns:
 str– Name of month, formatted to match the month names in thecalendarmodule.
Examples
>>> format_month_name("June") "June" >>> format_month_name("aprIl") "April" >>> format_month_name(" aug ") "Aug"