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 b3519c1 commit 2e0af7aCopy full SHA for 2e0af7a
pandas/_libs/parsers.pyx
@@ -1359,7 +1359,7 @@ cdef class TextReader:
1359
1360
ignored_chars = b" +-"
1361
digits = b"0123456789"
1362
- float_indicating_chars = {self.parser.decimal, b"e", b"E"}
+ float_indicating_chars = b"eE"
1363
1364
for i in range(lines):
1365
COLITER_NEXT(it, word)
@@ -1370,7 +1370,9 @@ cdef class TextReader:
1370
found_first_digit = False
1371
j = 0
1372
while word[j] != b"\0":
1373
- if not found_first_digit and word[j] in ignored_chars:
+ if word[j] == self.parser.decimal:
1374
+ return True
1375
+ elif not found_first_digit and word[j] in ignored_chars:
1376
# no-op
1377
pass
1378
elif not found_first_digit and word[j] not in digits:
0 commit comments