We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa8398 commit 44b68bcCopy full SHA for 44b68bc
pandas/_libs/parsers.pyx
@@ -1354,7 +1354,6 @@ cdef class TextReader:
1354
Py_ssize_t i, lines = end - start
1355
coliter_t it
1356
const char *word = NULL
1357
- const char *ch
1358
1359
coliter_setup(&it, self.parser, col, start)
1360
@@ -1364,14 +1363,8 @@ cdef class TextReader:
1364
1363
if na_filter and kh_get_str_starts_item(na_hashset, word):
1365
continue
1366
1367
- ch = word
1368
- while ch[0] != b"\0":
1369
- token_indicates_float = (ch[0] == self.parser.decimal
1370
- or ch[0] == b"e"
1371
- or ch[0] == b"E")
1372
- if token_indicates_float:
1373
- return True
1374
- ch += 1
+ if self.parser.decimal in word or b"e" in word or b"E" in word:
+ return True
1375
1376
return False
1377
0 commit comments