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

后端 未结 2 584
谎友^
谎友^ 2021-02-08 15:32

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:34

    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())
    

提交回复
热议问题