Skip to content

Commit dae0b09

Browse files
committed
DEPR: remove DataFrame.colSpace in favor of col_space, circa v0.8.0
1 parent 42ca8cd commit dae0b09

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

doc/source/whatsnew/v0.17.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ Removal of prior version deprecations/changes
672672
- Remove use of some deprecated numpy comparison operations, mainly in tests. (:issue:`10569`)
673673
- Removal of ``na_last`` parameters from ``Series.order()`` and ``Series.sort()``, in favor of ``na_position``, xref (:issue:`5231`)
674674
- Remove of ``percentile_width`` from ``.describe()``, in favor of ``percentiles``. (:issue:`7088`)
675+
- Removal of ``colSpace`` parameter from ``DataFrame.to_string()``, in favor of ``col_space``, circa 0.8.0 version.
675676

676677
.. _whatsnew_0170.performance:
677678

pandas/core/frame.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ def to_stata(
13961396
writer.write_file()
13971397

13981398
@Appender(fmt.docstring_to_string, indents=1)
1399-
def to_string(self, buf=None, columns=None, col_space=None, colSpace=None,
1399+
def to_string(self, buf=None, columns=None, col_space=None,
14001400
header=True, index=True, na_rep='NaN', formatters=None,
14011401
float_format=None, sparsify=None, index_names=True,
14021402
justify=None, line_width=None, max_rows=None, max_cols=None,
@@ -1405,11 +1405,6 @@ def to_string(self, buf=None, columns=None, col_space=None, colSpace=None,
14051405
Render a DataFrame to a console-friendly tabular output.
14061406
"""
14071407

1408-
if colSpace is not None: # pragma: no cover
1409-
warnings.warn("colSpace is deprecated, use col_space",
1410-
FutureWarning)
1411-
col_space = colSpace
1412-
14131408
formatter = fmt.DataFrameFormatter(self, buf=buf, columns=columns,
14141409
col_space=col_space, na_rep=na_rep,
14151410
formatters=formatters,

0 commit comments

Comments
 (0)