Skip to content

Commit 67cc87c

Browse files
committed
BUG: parser int bug #3071
1 parent 516c99e commit 67cc87c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/io/parsers.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,9 @@ def converter(*date_cols):
15551555
try:
15561556
result = date_parser(*date_cols)
15571557
if isinstance(result, datetime.datetime):
1558-
raise Exception('scalar parser')
1558+
result = np.array([result])
1559+
elif not isinstance(result, np.ndarray):
1560+
raise Exception("Invalid fast date parsing result")
15591561
return result
15601562
except Exception:
15611563
try:

0 commit comments

Comments
 (0)