Skip to content

Commit ebd3146

Browse files
domsmrzmroeschke
andauthored
Update pandas/core/computation/align.py
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
1 parent fb73a27 commit ebd3146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/computation/align.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def align_terms(terms):
170170

171171
# if all input series have a common name, propagate it to the returned series
172172
names = {term.value.name for term in terms if isinstance(term.value, ABCSeries)}
173-
name = next(iter(names)) if len(names) == 1 else None
173+
name = names.pop() if len(names) == 1 else None
174174

175175
# perform the main alignment
176176
typ, axes = _align_core(terms)

0 commit comments

Comments
 (0)