Skip to content

Commit f0f3022

Browse files
committed
removed updation of dtype dict from c parser
1 parent b63aef2 commit f0f3022

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pandas/_libs/parsers.pyx

-8
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ from pandas.core.dtypes.common import (
108108
is_object_dtype,
109109
)
110110
from pandas.core.dtypes.dtypes import CategoricalDtype
111-
from pandas.core.dtypes.inference import is_dict_like
112111

113112
cdef:
114113
float64_t INF = <float64_t>np.inf
@@ -688,13 +687,6 @@ cdef class TextReader:
688687
counts[name] = count + 1
689688
name = f'{name}.{count}'
690689
count = counts.get(name, 0)
691-
if (
692-
self.dtype is not None
693-
and is_dict_like(self.dtype)
694-
and self.dtype.get(old_name) is not None
695-
and self.dtype.get(name) is None
696-
):
697-
self.dtype.update({name: self.dtype.get(old_name)})
698690

699691
if old_name == '':
700692
unnamed_cols.add(name)

0 commit comments

Comments
 (0)