I have some data that is observed and registered by week, and I'm trying to plot this data with matplotlib. I'm currently using the date format yyyymmw
, where w
stands for the week of the month (can assume any value from 1 to 5). Every week starts on Tuesday and ends on Monday unless the end/start of the month cuts this week in two.
My question is: is there any datetime
format that supports these types of dates?
Here's an example of the data:
+ --------+-------+------+
| week | Sugar | Soy |
+ --------+-------+------+
| 2019121 | 534.3 | 49.1 |
| 2019122 | 423.6 | 45.2 |
+ --------+-------+------+