Skip to content

Commit 0500d97

Browse files
committed
Catch unhashable name
1 parent 189fc61 commit 0500d97

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/base.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,11 @@ def is_any_frame() -> bool:
472472
except ValueError:
473473

474474
# we have a dict of scalars
475-
result = Series(result, name=getattr(self, "name", None))
475+
476+
name = getattr(self, "name", None)
477+
name = name if is_hashable(name) else None
478+
# GH#36212
479+
result = Series(result, name=name)
476480

477481
return result, True
478482
elif is_list_like(arg):

0 commit comments

Comments
 (0)