@@ -12,7 +12,7 @@ from cpython cimport (PyObject, PyBytes_FromString,
1212 PyBytes_AsString, PyBytes_Check,
1313 PyUnicode_Check, PyUnicode_AsUTF8String,
1414 PyErr_Occurred, PyErr_Fetch)
15- from cpython.ref cimport PyObject, Py_XDECREF
15+ from cpython.ref cimport Py_XDECREF
1616from pandas.errors import (ParserError, DtypeWarning,
1717 EmptyDataError, ParserWarning)
1818
@@ -43,12 +43,10 @@ from pandas.core.dtypes.common import (
4343 is_categorical_dtype, CategoricalDtype,
4444 is_integer_dtype, is_float_dtype,
4545 is_bool_dtype, is_object_dtype,
46- is_string_dtype, is_datetime64_dtype,
46+ is_datetime64_dtype,
4747 pandas_dtype)
48- from pandas.core.categorical import Categorical, _recode_for_categories
49- from pandas.core.algorithms import take_1d
48+ from pandas.core.categorical import Categorical
5049from pandas.core.dtypes.concat import union_categoricals
51- from pandas import Index
5250
5351import pandas.io.common as com
5452
@@ -165,7 +163,7 @@ cdef extern from "parser/tokenizer.h":
165163 int quoting # style of quoting to write */
166164
167165 # hmm =/
168- # int numeric_field
166+ # int numeric_field
169167
170168 char commentchar
171169 int allow_embedded_newline
@@ -253,11 +251,7 @@ cdef extern from "parser/tokenizer.h":
253251 double round_trip(const char * p, char ** q, char decimal, char sci,
254252 char tsep, int skip_trailing) nogil
255253
256- # inline int to_complex(char *item, double *p_real,
257- # double *p_imag, char sci, char decimal)
258254 int to_longlong(char * item, long long * p_value) nogil
259- # inline int to_longlong_thousands(char *item, long long *p_value,
260- # char tsep)
261255 int to_boolean(const char * item, uint8_t * val) nogil
262256
263257
0 commit comments