Skip to content

Commit

Permalink
Add another timestamp format
Browse files Browse the repository at this point in the history
  • Loading branch information
StijnKas committed Dec 18, 2024
1 parent 5bb7ef1 commit dbf1ab0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/pdstools/utils/cdh_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ def parse_pega_date_time_formats(
pl.col(timestamp_col).str.to_datetime(
"%d-%b-%y", strict=False, ambiguous="null"
),
pl.col(timestamp_col).str.to_datetime(
"%d%b%Y:%H:%M:%S", strict=False, ambiguous="null"
),
pl.col(timestamp_col).str.to_datetime(
timestamp_fmt or "%Y", strict=False, ambiguous="null"
),
Expand Down Expand Up @@ -562,7 +565,7 @@ def _capitalize(fields: Union[str, Iterable[str]]) -> List[str]:
"Offline",
"Update",
"Strategy",
"ModelTechnique"
"ModelTechnique",
]
if not isinstance(fields, list):
fields = [fields]
Expand Down

0 comments on commit dbf1ab0

Please sign in to comment.