Skip to content

Commit 7ed8271

Browse files
author
y-p
committed
ENH: add internal get_default_val() function to core.config
1 parent 119e2e3 commit 7ed8271

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ def _reset_option(pat):
140140
for k in keys:
141141
_set_option(k, _registered_options[k].defval)
142142

143+
def get_default_val(pat):
144+
key = _get_single_key(pat, silent=True)
145+
return _get_registered_option(key).defval
143146

144147
class DictWrapper(object):
145148
""" provide attribute-style access to a nested dict

0 commit comments

Comments
 (0)