Skip to content

Commit 7bcb504

Browse files
committed
Revert "checked for str"
This reverts commit b63aef2.
1 parent cb369bb commit 7bcb504

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/io/parsers/base_parser.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -532,11 +532,7 @@ 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 (
536-
cast_type is None
537-
and isinstance(c, str)
538-
and c.split(".")[-1].isnumeric()
539-
):
535+
if cast_type is None and c.split(".")[-1].isnumeric:
540536
orig_c = ".".join(c.split(".")[:-1])
541537
cast_type = dtypes.get(orig_c, None)
542538
else:

0 commit comments

Comments
 (0)