Closed
Description
How can the type of
iter(something)
be different fromsomething.__iter__
? Is there some double check I should do ?I think the issue is that when you are doing
s.groupby(series_groupby)
,s
isSeries[Any]
because there was nodtype
information supplied. If you had createds=pd.Series([1, 1, 2], dtype=int)
, then you'd get the results you expect.
Maybe this is deserving of a separate issue, but shouldn't we be able to create an initializer overload that takes a list[T]
and returns a pd.Series[T]
?
Originally posted by @gandhis1 in #708 (comment)
Metadata
Metadata
Assignees
Labels
No labels