-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
3rd-partyIssues due to 3rd-party packages/toolsIssues due to 3rd-party packages/tools
Description
When I create grouped data with datar
's group_by()
, I get an undesirable DataFrameGroupBy
element instead of a DataFrame. It is not desirable to have a DataFrameGroupBy in VSCode because the dataframe cannot be clicked on the Variables Window of VSCode to see the entire dataframe, whereas the mtcars
can be click to exposed the full dataset because it is a DataFrame.
The code below creates grouped data in datar
and grouped data in pandas; However, datar
creates a DataFrameGroupBy instead of a dataframe.
from datar.all import *
from datar.datasets import mtcars
datar_group = mtcars >> group_by(f.hp) >> count()
pandas_group = mtcars.groupby('hp').size().reset_index().rename(columns = {0:"n"})
Metadata
Metadata
Assignees
Labels
3rd-partyIssues due to 3rd-party packages/toolsIssues due to 3rd-party packages/tools