Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

How about make it available with dfply?  #671

@guokai8

Description

@guokai8

Hi,
The ggplot is a nice package for python. However when I use dfply with the pipe function I can't make figure easily.

data = pd.DataFrame(
    {'col1':[1,1,1,1,1,2,2,2,2,2],
    'col2':[1,2,3,4,5,6,7,8,9,0],
     'col3':[-1,-2,-3,-4,-5,-6,-7,-8,-9,0]
    }
)
data >> group_by(X.col1) >> summarise(mean=X.col2.mean(),std=X.col3.std()) >> ggplot(aes(x='col1',y='mean'))+geom_bar()

it will report a error with

__init__() missing 1 required positional argument: 'data'

How about do something minor changes to make ggplot accept the pipe data ?

Kai

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions