We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 855a6e2 commit c463e1fCopy full SHA for c463e1f
pandas/core/groupby.py
@@ -3403,10 +3403,13 @@ def first_non_None_value(values):
3403
3404
return self._reindex_output(result)
3405
3406
+ # values are not series or array-like but scalars
3407
else:
3408
# only coerce dates if we find at least 1 datetime
3409
coerce = True if any([isinstance(x, Timestamp)
3410
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
3413
return (Series(values, index=key_index)
3414
._convert(datetime=True,
3415
coerce=coerce))
0 commit comments