From f8e3785414637151101e304e5073d78d8e8ca563 Mon Sep 17 00:00:00 2001 From: Ondrej Kokes Date: Tue, 21 Nov 2017 16:24:00 +0100 Subject: [PATCH 1/2] escaping code examples properly --- pandas/io/parsers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index c15b878822522..3f8f1b7884737 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -245,9 +245,9 @@ Indicates remainder of line should not be parsed. If found at the beginning of a line, the line will be ignored altogether. This parameter must be a single character. Like empty lines (as long as ``skip_blank_lines=True``), - fully commented lines are ignored by the parameter `header` but not by - `skiprows`. For example, if comment='#', parsing '#empty\\na,b,c\\n1,2,3' - with `header=0` will result in 'a,b,c' being + fully commented lines are ignored by the parameter ``header`` but not by + ``skiprows``. For example, if ``comment='#'``, parsing + ``#empty\\na,b,c\\n1,2,3`` with ``header=0`` will result in 'a,b,c' being treated as the header. encoding : str, default None Encoding to use for UTF when reading/writing (ex. 'utf-8'). `List of Python From 9531e1c46067f16b51ddc3abe8f37c7393708d13 Mon Sep 17 00:00:00 2001 From: Ondrej Kokes Date: Wed, 22 Nov 2017 09:46:24 +0100 Subject: [PATCH 2/2] treating kwargs as interpreted text, not literals --- pandas/io/parsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 3f8f1b7884737..558a1f6d76868 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -245,8 +245,8 @@ Indicates remainder of line should not be parsed. If found at the beginning of a line, the line will be ignored altogether. This parameter must be a single character. Like empty lines (as long as ``skip_blank_lines=True``), - fully commented lines are ignored by the parameter ``header`` but not by - ``skiprows``. For example, if ``comment='#'``, parsing + fully commented lines are ignored by the parameter `header` but not by + `skiprows`. For example, if ``comment='#'``, parsing ``#empty\\na,b,c\\n1,2,3`` with ``header=0`` will result in 'a,b,c' being treated as the header. encoding : str, default None