From a0f2ed3a6c211996420b4e9f769ebc7393b9aeb9 Mon Sep 17 00:00:00 2001 From: aneesh kulkarni Date: Sat, 24 Jul 2021 17:43:03 +0530 Subject: [PATCH 1/2] TST: Solution to doctest error in _parse_latex_header_span The following commit fixes the doctext in _parse_latex_header_span. Solves issue #42673 --- pandas/io/formats/style_render.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index c855caa3c3ee0..41818e087df9c 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -1334,9 +1334,9 @@ def _parse_latex_header_span( Examples -------- - >>> cell = {'display_vale':'text', 'attributes': 'colspan="3"'} + >>> cell = {'display_value':'text', 'attributes': 'colspan="3"'} >>> _parse_latex_header_span(cell, 't', 'c') - '\multicol{3}{c}{text}' + '\\multicolumn{3}{c}{text}' """ if "attributes" in cell: attrs = cell["attributes"] From daf1aa74f3b20390ac2c687464994d815827f3f8 Mon Sep 17 00:00:00 2001 From: aneesh kulkarni Date: Sun, 25 Jul 2021 13:21:00 +0530 Subject: [PATCH 2/2] Added style_render.py file in code_checks.sh, to include it in validation during CI --- ci/code_checks.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9f59958b4e827..53536aa211f8e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -121,7 +121,8 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then pandas/io/parsers/ \ pandas/io/sas/ \ pandas/io/sql.py \ - pandas/tseries/ + pandas/tseries/ \ + pandas/io/formats/style_render.py RET=$(($RET + $?)) ; echo $MSG "DONE" fi