Skip to content

Commit b63aef2

Browse files
committed
checked for str
1 parent 4419146 commit b63aef2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/io/parsers/base_parser.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,11 @@ def _convert_to_ndarrays(
532532
conv_f = None if converters is None else converters.get(c, None)
533533
if isinstance(dtypes, dict):
534534
cast_type = dtypes.get(c, None)
535-
if cast_type is None and c.split(".")[-1].isnumeric:
535+
if (
536+
cast_type is None
537+
and isinstance(c, str)
538+
and c.split(".")[-1].isnumeric()
539+
):
536540
orig_c = ".".join(c.split(".")[:-1])
537541
cast_type = dtypes.get(orig_c, None)
538542
else:

0 commit comments

Comments
 (0)