From b84a4951e06c5563cd93a8c5599916a46379ac4f Mon Sep 17 00:00:00 2001 From: eshirvana <72626662+eshirvana@users.noreply.github.com> Date: Sun, 6 Feb 2022 23:35:05 -0400 Subject: [PATCH] Backport PR #45853: Fixing documentation format in read_csv --- 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 ef693fcbd3720..577c38deb4ed4 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"``