Skip to content

Commit c2cbdf9

Browse files
committed
changed to using existing function _ensure_encoded in parsers.pyx
1 parent 043d445 commit c2cbdf9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pandas/_libs/parsers.pyx

+1-7
Original file line numberDiff line numberDiff line change
@@ -275,16 +275,10 @@ cdef extern from "parser/io.h":
275275

276276
DEFAULT_CHUNKSIZE = 256 * 1024
277277

278-
279-
def c_type_conv(st):
280-
cdef bytes py_bytes = st.encode()
281-
return py_bytes
282-
283-
284278
# common NA values
285279
# no longer excluding inf representations
286280
# '1.#INF','-1.#INF', '1.#INF000000',
287-
_NA_VALUES = [c_type_conv(x) for x in parsers._NA_VALUES]
281+
_NA_VALUES =_ensure_encoded(in parsers._NA_VALUES)
288282

289283

290284
cdef class TextReader:

0 commit comments

Comments
 (0)