Skip to content

Commit d1b2eb4

Browse files
authored
Fix string quotes in parsers.pyx for pre-commit.ci
1 parent 1afd32b commit d1b2eb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/_libs/parsers.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,11 +462,11 @@ cdef class TextReader:
462462
self.parser.commentchar = <char>ord(comment)
463463

464464
if isinstance(on_bad_lines, str):
465-
if on_bad_lines == 'error':
465+
if on_bad_lines == "error":
466466
c_on_bad_lines = ERROR
467-
elif on_bad_lines == 'warn':
467+
elif on_bad_lines == "warn":
468468
c_on_bad_lines = WARN
469-
elif on_bad_lines == 'skip':
469+
elif on_bad_lines == "skip":
470470
c_on_bad_lines = SKIP
471471
# Note: can add 'skip_with_log' here later when we work on logging
472472
else:
@@ -1482,7 +1482,7 @@ def _identify_bad_rows(values, dtype):
14821482
"""
14831483
Identify the row indices when values cannot be converted to the intended target
14841484
1485-
This can be used to find rows that should be skipped when on_bad_lines='skip'
1485+
This can be used to find rows that should be skipped when on_bad_lines="skip"
14861486
14871487
Parameters
14881488
----------

0 commit comments

Comments
 (0)