Skip to content

Commit 548a428

Browse files
author
araraonline
committed
Comment _get_consensus_names
1 parent b895c3c commit 548a428

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/indexes/api.py

+5
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ def _sanitize_and_check(indexes):
144144

145145

146146
def _get_consensus_names(indexes):
147+
"""Give a consensus 'names' to indexes
148+
149+
If there's exactly one non-empty 'names', return this,
150+
otherwise, return empty.
151+
"""
147152

148153
# find the non-none names, need to tupleify to make
149154
# the set hashable, then reverse on return

0 commit comments

Comments
 (0)