Skip to content

Commit d4ac415

Browse files
author
gshiba
committed
Complete change requests
1 parent d8ca36d commit d4ac415

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

doc/source/whatsnew/v0.23.5.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,3 @@ Bug Fixes
4949
**I/O**
5050

5151
- Bug in :func:`read_csv` that caused it to raise ``OverflowError`` when trying to use 'inf' as ``na_value`` with integer index column (:issue:`17128`)
52-
- Bug in :func:`to_string(index=False)` that broke column alignment (:issue:`16839`, :issue:`13032`)
53-
-

doc/source/whatsnew/v0.24.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ I/O
676676

677677
- :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when considering the ``skiprows`` and ``header`` arguments. Previously, users had to decrease their ``header`` and ``skiprows`` values on such tables to work around the issue. (:issue:`21641`)
678678
- :func:`read_excel()` will correctly show the deprecation warning for previously deprecated ``sheetname`` (:issue:`17994`)
679-
-
679+
- Bug in :func:`to_string()` that broke column alignment when ``index=False`` and width of first column's values is greater than the width of first column's header (:issue:`16839`, :issue:`13032`)
680680

681681
Plotting
682682
^^^^^^^^

pandas/tests/io/formats/test_format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ def test_to_string_specified_header(self):
12691269
df.to_string(header=['X'])
12701270

12711271
def test_to_string_no_index(self):
1272-
1272+
# GH 16839, GH 13032
12731273
df = DataFrame({'x': [11, 22], 'y': [33, -44], 'z': ['AAA', ' ']})
12741274

12751275
df_s = df.to_string(index=False)
@@ -1286,6 +1286,7 @@ def test_to_string_no_index(self):
12861286
assert df_s == expected
12871287

12881288
def test_to_string_line_width_no_index(self):
1289+
# GH 13998, GH 22505
12891290
df = DataFrame({'x': [1, 2, 3], 'y': [4, 5, 6]})
12901291

12911292
df_s = df.to_string(line_width=1, index=False)

0 commit comments

Comments
 (0)