Skip to content

Commit 5e2f9da

Browse files
OXPHOSjorisvandenbossche
authored andcommitted
DOC: split docstring into multiple lines in excel.py (#14073)
1 parent 9554195 commit 5e2f9da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pandas/io/excel.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from warnings import warn
3030
from distutils.version import LooseVersion
3131
from pandas.util.decorators import Appender
32+
from textwrap import fill
3233

3334
__all__ = ["read_excel", "ExcelWriter", "ExcelFile"]
3435

@@ -107,7 +108,7 @@
107108
na_values : scalar, str, list-like, or dict, default None
108109
Additional strings to recognize as NA/NaN. If dict passed, specific
109110
per-column NA values. By default the following values are interpreted
110-
as NaN: '""" + "', '".join(sorted(_NA_VALUES)) + """'.
111+
as NaN: '""" + fill("', '".join(sorted(_NA_VALUES)), 70) + """'.
111112
thousands : str, default None
112113
Thousands separator for parsing string columns to numeric. Note that
113114
this parameter is only necessary for columns stored as TEXT in Excel,

pandas/io/parsers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import sys
99
import warnings
1010
import datetime
11+
from textwrap import fill
1112

1213
import numpy as np
1314

@@ -133,7 +134,7 @@
133134
na_values : scalar, str, list-like, or dict, default None
134135
Additional strings to recognize as NA/NaN. If dict passed, specific
135136
per-column NA values. By default the following values are interpreted as
136-
NaN: `'""" + "'`, `'".join(sorted(_NA_VALUES)) + """'`.
137+
NaN: '""" + fill("', '".join(sorted(_NA_VALUES)), 70) + """'`.
137138
keep_default_na : bool, default True
138139
If na_values are specified and keep_default_na is False the default NaN
139140
values are overridden, otherwise they're appended to.

0 commit comments

Comments
 (0)