Skip to content

Commit 704516f

Browse files
1 parent 308e1cb commit 704516f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/tools/datetimes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def calc_with_mask(carg, mask):
940940
# try intlike / strings that are ints
941941
try:
942942
return calc(arg.astype(np.int64))
943-
except (ValueError, OverflowError):
943+
except (ValueError, OverflowError, TypeError):
944944
pass
945945

946946
# a float with actual np.nan

0 commit comments

Comments
 (0)