We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb73a27 commit ebd3146Copy full SHA for ebd3146
pandas/core/computation/align.py
@@ -170,7 +170,7 @@ def align_terms(terms):
170
171
# if all input series have a common name, propagate it to the returned series
172
names = {term.value.name for term in terms if isinstance(term.value, ABCSeries)}
173
- name = next(iter(names)) if len(names) == 1 else None
+ name = names.pop() if len(names) == 1 else None
174
175
# perform the main alignment
176
typ, axes = _align_core(terms)
0 commit comments