Skip to content

Commit cf27280

Browse files
committed
included dtype conversion of mangled cols in c parser
1 parent f0f3022 commit cf27280

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/_libs/parsers.pyx

+4
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,10 @@ cdef class TextReader:
981981
col_dtype = self.dtype[name]
982982
elif i in self.dtype:
983983
col_dtype = self.dtype[i]
984+
else:
985+
if isinstance(name, str) and name.split(".")[-1].isnumeric():
986+
orig_name = ".".join(name.split(".")[:-1])
987+
col_dtype = self.dtype.get(orig_name, None)
984988
else:
985989
if self.dtype.names:
986990
# structured array

0 commit comments

Comments
 (0)