Skip to content

Commit 2de8bff

Browse files
committed
BUG: Don't ignore errors when casting dtype in Series constructor
1 parent 3979e95 commit 2de8bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def __init__(
500500
# create/copy the manager
501501
if isinstance(data, SingleBlockManager):
502502
if dtype is not None:
503-
data = data.astype(dtype=dtype, errors="ignore")
503+
data = data.astype(dtype=dtype)
504504
elif copy:
505505
data = data.copy()
506506
else:

0 commit comments

Comments
 (0)