Skip to content

Commit a9151d1

Browse files
Add comment
1 parent e014e0f commit a9151d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/groupby.py

+3
Original file line numberDiff line numberDiff line change
@@ -3403,10 +3403,13 @@ def first_non_None_value(values):
34033403

34043404
return self._reindex_output(result)
34053405

3406+
# values are not series or array-like but scalars
34063407
else:
34073408
# only coerce dates if we find at least 1 datetime
34083409
coerce = True if any([isinstance(x, Timestamp)
34093410
for x in values]) else False
3411+
# self.name not passed through to Series as the result
3412+
# should not take the name of original selection of columns
34103413
return (Series(values, index=key_index)
34113414
._convert(datetime=True,
34123415
coerce=coerce))

0 commit comments

Comments
 (0)