Skip to content

Commit abab307

Browse files
authored
DOC fix *_option() docstring (#31571)
1 parent 44782c0 commit abab307

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/_config/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ def _describe_option(pat: str = "", _print_desc: bool = True):
155155
if len(keys) == 0:
156156
raise OptionError("No such keys(s)")
157157

158-
s = ""
159-
for k in keys: # filter by pat
160-
s += _build_option_description(k)
158+
s = "\n".join([_build_option_description(k) for k in keys])
161159

162160
if _print_desc:
163161
print(s)

0 commit comments

Comments
 (0)