From 58d26fec191c17f7d8ac44a695f23bd3558f415a Mon Sep 17 00:00:00 2001 From: Jai Date: Sat, 16 Sep 2023 20:54:10 -0700 Subject: [PATCH 1/2] Update read_csv docs --- pandas/io/parsers/readers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index e826aad478059..f348ccfa49437 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -238,7 +238,8 @@ default False The behavior is as follows: - * ``bool``. If ``True`` -> try parsing the index. + * ``bool``. If ``True`` -> try parsing the index. Note: Automatically set to ``True`` + if ``date_format`` or ``date_parser`` arguments have been passed. * ``list`` of ``int`` or names. e.g. If ``[1, 2, 3]`` -> try parsing columns 1, 2, 3 each as a separate date column. * ``list`` of ``list``. e.g. If ``[[1, 3]]`` -> combine columns 1 and 3 and parse From 69eec636a9c949256960faedd3a7830a09f4e55a Mon Sep 17 00:00:00 2001 From: Jai Date: Sat, 16 Sep 2023 21:18:08 -0700 Subject: [PATCH 2/2] Fix line length --- 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 f348ccfa49437..acf35ebd6afe5 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -238,8 +238,8 @@ default False The behavior is as follows: - * ``bool``. If ``True`` -> try parsing the index. Note: Automatically set to ``True`` - if ``date_format`` or ``date_parser`` arguments have been passed. + * ``bool``. If ``True`` -> try parsing the index. Note: Automatically set to + ``True`` if ``date_format`` or ``date_parser`` arguments have been passed. * ``list`` of ``int`` or names. e.g. If ``[1, 2, 3]`` -> try parsing columns 1, 2, 3 each as a separate date column. * ``list`` of ``list``. e.g. If ``[[1, 3]]`` -> combine columns 1 and 3 and parse