Best way to generate day-of-week boxplots from a Pandas timeseries

后端 未结 2 1944
你的背包
你的背包 2021-02-08 15:39

i am trying to create a set of day-of-week boxplots for a timeseries (e.g. 5-minute temperature observations).

My code:

# ts is our timeseries
ts = df.S         


        
2条回答
  •  伪装坚强ぢ
    2021-02-08 16:19

    import locale, calendar
    # for example pl_PL
    locale.setlocale(locale.LC_ALL, 'pl_PL.UTF-8')
    x = x.rename_axis(lambda x: calendar.day_abbr[x].capitalize())
    

提交回复
热议问题