We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae246bd commit 89bbd3bCopy full SHA for 89bbd3b
pandas/tests/io/formats/test_format.py
@@ -2380,6 +2380,17 @@ def test_to_string_header(self):
2380
exp = '0 0\n ..\n9 9'
2381
assert res == exp
2382
2383
+ @pytest.mark.parametrize("input_series, expected", [
2384
+ ([' a', ' b'], ' a\n b'),
2385
+ (['.1', '1'], '.1\n 1'),
2386
+ (['10', '-10'], ' 10\n-10')
2387
+ ])
2388
+ def test_to_string_index_false_corner_case(self,
2389
+ input_series,
2390
+ expected):
2391
+ s = pd.Series(input_series).to_string(index=False)
2392
+ assert s == expected
2393
+
2394
2395
def _three_digit_exp():
2396
return '{x:.4g}'.format(x=1.7e8) == '1.7e+008'
0 commit comments