I am trying to create a table for "Date" on Databricks using the below configurations:
# Get date range
dateFrom = dbutils.widgets.get("date_from")
dateTo = dbutils.widgets.get("date_to")
dateDF_TESTE = spark.sql("SELECT sequence(to_date('{0}'), to_date('{1}'), interval 1 day) AS date".format(dateFrom, dateTo))\
.select(F.explode("date").alias('DSC_DATE'))'''
But when I add columns with those data, I am only getting the information, for example month name or days of the week, in english.
I intend to change this information to another language (portuguese), but without any success. I´ve tried to use locale but it is not working.
import locale
# use user's default settings
locale.setlocale(locale.LC_ALL, 'pt_PT.utf8')