Skip to content

Commit 136f447

Browse files
committed
Revert to see if it affects tests
1 parent af0df90 commit 136f447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure-kusto-data/azure/kusto/data/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def parse_datetime(frame, col, force_version: Optional[str] = None):
128128
else:
129129
# if frame contains ".", replace "Z" with ".000Z"
130130
# == False is not a mistake - that's the pandas way to do it
131-
contains_dot = frame[col].str.contains("\\.")
132-
frame.loc[~contains_dot, col] = frame.loc[~contains_dot, col].str.replace("Z", ".000Z")
131+
contains_dot = frame[col].str.contains(".")
132+
frame.loc[not contains_dot, col] = frame.loc[not contains_dot, col].str.replace("Z", ".000Z")
133133
frame[col] = pd.to_datetime(frame[col], errors="coerce", **args)
134134
return frame[col]
135135

0 commit comments

Comments
 (0)