From fd45ab23ef77c55c80744e440ac17440d0ea631e Mon Sep 17 00:00:00 2001 From: Ehsan Shirvanian Date: Sun, 6 Feb 2022 21:31:06 -0400 Subject: [PATCH] Fixing documentation format in read_csv add a mising ` in on_bad_lines option description in " New in version 1.3.0: " section , that was causing to make couple of lines red --- pandas/io/parsers/readers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 5f93eef4fd977..c5b84dd18ec13 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -374,7 +374,7 @@ - callable, function with signature ``(bad_line: list[str]) -> list[str] | None`` that will process a single bad line. ``bad_line`` is a list of strings split by the ``sep``. - If the function returns ``None`, the bad line will be ignored. + If the function returns ``None``, the bad line will be ignored. If the function returns a new list of strings with more elements than expected, a ``ParserWarning`` will be emitted while dropping extra elements. Only supported when ``engine="python"``