Skip to content

Commit cc86cd7

Browse files
author
gshiba
committed
Complete change requests
1 parent 8e96e64 commit cc86cd7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/source/whatsnew/v0.23.5.txt

-2
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,3 @@ Bug Fixes
5252
**I/O**
5353

5454
- 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`)
55-
- Bug in :func:`to_string(index=False)` that broke column alignment (:issue:`16839`, :issue:`13032`)
56-
-

doc/source/whatsnew/v0.24.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ I/O
762762
- :func:`read_sas()` will correctly parse sas7bdat files with many columns (:issue:`22628`)
763763
- :func:`read_sas()` will correctly parse sas7bdat files with data page types having also bit 7 set (so page type is 128 + 256 = 384) (:issue:`16615`)
764764
- Bug in :meth:`detect_client_encoding` where potential ``IOError`` goes unhandled when importing in a mod_wsgi process due to restricted access to stdout. (:issue:`21552`)
765+
- 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`)
765766

766767
Plotting
767768
^^^^^^^^

pandas/tests/io/formats/test_format.py

+2-1
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)