Skip to content

Commit f95df38

Browse files
committed
Use the "1min" resample alias instead of "1T"
pandas removed the single-letter "T" frequency alias in 3.0, deprecated since 2.2, so the unpinned pandas in requirements.txt makes _process_raw_logs raise ValueError on every rebuild. "1min" is accepted by both pandas 2.x and 3.x.
1 parent 63741f2 commit f95df38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aws/lambda/usage-log-aggregator/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
r"^(?P<job>.+)\s/\s.+\((?P<s_name>[^,]+),\s(?P<s_id>[^,]+),\s(?P<s_count>[^,]+),\s(?P<platform>[^,]+)\)$"
2525
)
2626
# One minute according to the rule https://pandas.pydata.org/docs/reference/api/pandas.Series.resample.html
27-
RESAMPLING_WINDOW = "1T"
27+
RESAMPLING_WINDOW = "1min"
2828
DATETIME_FORMAT = "%Y-%m-%d %X"
2929
# NB: This is a work around to handle the case where requested job is retried
3030
MAX_RUN_ATTEMPT_TO_SCAN = 10

0 commit comments

Comments
 (0)