Код: Выделить всё
def changeMonth(month):
global CurrentMonth
match month:
case "Jan":
return "Janvier"
case "Feb":
return "Février"
case "Mar":
return "Mars"
case "Apr":
return "Avril"
case "May":
return "Mai"
case "Jun":
return "Juin"
case "Jul":
return "Juillet"
case "Aug":
return "Août"
case "Sep":
return "Septembre"
case "Oct":
return "Octobre"
case "Nov":
return "Novembre"
case "Dec":
return "Décembre"
# If an exact match is not confirmed, this last case will be used if provided
case _:
return ""
p> pro/p> pro/pr> pr> hots/pr> https://i.sstatic.net/pqhuumf. Ищу это, чтобы пройти DF ["Month"] COL через функцию Changemonth, чтобы отобразить DF ["месяц"] в Frensh Month Mests < /p>
, кстати, я не хочу использовать < /p>
Код: Выделить всё
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'fr_FR')
Подробнее здесь: https://stackoverflow.com/questions/795 ... ing-pandas