Skip to content

Commit 894daa2

Browse files
committed
Fix line wrapping
1 parent 2220d6a commit 894daa2

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

pandas/core/frame.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,8 +1597,9 @@ def to_feather(self, fname):
15971597
from pandas.io.feather_format import to_feather
15981598
to_feather(self, fname)
15991599

1600-
@Substitution(header='Write out column names. If a list of string is given, \
1601-
it is assumed to be aliases for the column names')
1600+
@Substitution(header='Write out column names. If a list of string is '
1601+
'given, it is assumed to be aliases for the column '
1602+
'names')
16021603
@Appender(fmt.docstring_to_string, indents=1)
16031604
def to_string(self, buf=None, columns=None, col_space=None, header=True,
16041605
index=True, na_rep='NaN', formatters=None, float_format=None,

pandas/core/generic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,8 +1702,9 @@ def to_xarray(self):
17021702
.. versionadded:: 0.20.0
17031703
"""
17041704

1705-
@Substitution(header='Write out column names. If a list of string is given, \
1706-
it is assumed to be aliases for the column names.')
1705+
@Substitution(header='Write out column names. If a list of string is '
1706+
'given, it is assumed to be aliases for the column '
1707+
'names.')
17071708
@Appender(_shared_docs['to_latex'] % _shared_doc_kwargs)
17081709
def to_latex(self, buf=None, columns=None, col_space=None, header=True,
17091710
index=True, na_rep='NaN', formatters=None, float_format=None,

pandas/core/indexing.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pylint: disable=W0223
2-
2+
import textwrap
33
import warnings
44
import numpy as np
55
from pandas.compat import range, zip
@@ -1288,13 +1288,13 @@ class _IXIndexer(_NDFrameIndexer):
12881288

12891289
def __init__(self, obj, name):
12901290

1291-
_ix_deprecation_warning = """
1292-
.ix is deprecated. Please use
1293-
.loc for label based indexing or
1294-
.iloc for positional indexing
1291+
_ix_deprecation_warning = textwrap.dedent("""
1292+
.ix is deprecated. Please use
1293+
.loc for label based indexing or
1294+
.iloc for positional indexing
12951295
1296-
See the documentation here:
1297-
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated""" # noqa
1296+
See the documentation here:
1297+
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated""") # noqa
12981298

12991299
warnings.warn(_ix_deprecation_warning,
13001300
DeprecationWarning, stacklevel=3)

0 commit comments

Comments
 (0)