Skip to content

Commit

Permalink
changed to using existing function _ensure_encoded in parsers.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShteynbuk committed Jun 5, 2017
1 parent 043d445 commit c2cbdf9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pandas/_libs/parsers.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -275,16 +275,10 @@ cdef extern from "parser/io.h":

DEFAULT_CHUNKSIZE = 256 * 1024


def c_type_conv(st):
cdef bytes py_bytes = st.encode()
return py_bytes


# common NA values
# no longer excluding inf representations
# '1.#INF','-1.#INF', '1.#INF000000',
_NA_VALUES = [c_type_conv(x) for x in parsers._NA_VALUES]
_NA_VALUES =_ensure_encoded(in parsers._NA_VALUES)


cdef class TextReader:
Expand Down

0 comments on commit c2cbdf9

Please sign in to comment.