From b31b8f8395363d3738a8825fa60c7526f4a03506 Mon Sep 17 00:00:00 2001 From: Patrick Hoefler <61934744+phofl@users.noreply.github.com> Date: Tue, 19 Jul 2022 21:35:29 -0300 Subject: [PATCH] DOC: Fix versionadded for callable in on_bad_lines (#47792) --- pandas/io/parsers/readers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 3e792786b863a..d3a8b01e1da7b 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -371,6 +371,8 @@ .. versionadded:: 1.3.0 + .. versionadded:: 1.4.0 + - 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``. @@ -379,8 +381,6 @@ expected, a ``ParserWarning`` will be emitted while dropping extra elements. Only supported when ``engine="python"`` - .. versionadded:: 1.4.0 - delim_whitespace : bool, default False Specifies whether or not whitespace (e.g. ``' '`` or ``'\t'``) will be used as the sep. Equivalent to setting ``sep='\\s+'``. If this option