Skip to content

Commit 1f6093a

Browse files
committed
rebase
1 parent 0f0dba6 commit 1f6093a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pandas/io/tests/parser/c_parser_only.py

-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ def test_categorical_dtype_encoding(self):
256256
expected = self.read_table(pth, encoding=encoding)
257257
expected = expected.apply(Categorical)
258258
actual = self.read_table(pth, encoding=encoding, dtype='category')
259-
actual = actual.apply(lambda x: x.astype(object))
260259
tm.assert_frame_equal(actual, expected)
261260

262261
def test_categorical_dtype_chunksize(self):

pandas/parser.pyx

+1-6
Original file line numberDiff line numberDiff line change
@@ -1184,18 +1184,13 @@ cdef class TextReader:
11841184
codes, cats, na_count = _categorical_convert(self.parser, i, start,
11851185
end, na_filter, na_hashset,
11861186
self.c_encoding)
1187-
print cats
1188-
print codes
11891187
# sort categories and recode if necessary
11901188
cats = Index(cats)
11911189
if not cats.is_monotonic_increasing:
11921190
unsorted = cats.copy()
11931191
cats = cats.sort_values()
1194-
indexer = unsorted.get_indexer(cats)
1192+
indexer = cats.get_indexer(unsorted)
11951193
codes = take_1d(indexer, codes, fill_value=-1)
1196-
print indexer
1197-
print cats
1198-
print codes
11991194

12001195
return Categorical(codes, categories=cats, ordered=False,
12011196
fastpath=True), na_count

0 commit comments

Comments
 (0)