Skip to content

Commit

Permalink
drop Series constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Feb 15, 2023
1 parent a83c5dc commit ef1a310
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/cudf/cudf/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,13 @@ def dtypes(self):
3 object int64
"""
index = self.grouping.keys.unique().to_pandas()
result = pd.DataFrame(
return pd.DataFrame(
{
name: pd.Series([self.obj._dtypes[name]]).repeat(len(index))
name: [self.obj._dtypes[name]] * len(index)
for name in self.grouping.values._column_names
},
index=index,
)
result.index = index
return result

@cached_property
def groups(self):
Expand Down

0 comments on commit ef1a310

Please sign in to comment.