Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
11.08k stars 570 forks source link

Question: How to hidden mode function #455

Closed relakuman closed 6 months ago

relakuman commented 6 months ago

Hello I display pygwalker on web app. I use latest version(0.4.6 ). I don't have to display mode function because I always use only walker mode. Is it possible to hidden mode function?

pygwalker

ObservedObserver commented 6 months ago

Thanks for the feedback.

I think there can be two propsal for this:

1. Extra parameters

Usage example:

pygwalker.walk(df, mode='walker', enable_mode_option=True)

mode can be choosen from walker and enable_mode_option and it is the default value of selection. enable_mode_option decide whether allow the end users to switch the mode.

2. Expose more compoments

For now, pygwalke wrap all features and components from graphic walker together as a simple API, walk. But we can expose more raw components from graphic walker to allow developers to have more control of pygwalker.

usage example:

# walker component
pygwalker.walk(df)

# renderer component
pygwalker.render(df)

# table component
pygwalker.table(df)
ObservedObserver commented 6 months ago

Besides, @relakuman would you mind to share what web app framework you are using to host pygwalker?

relakuman commented 6 months ago

@ObservedObserver Thank you for your reply. I'm using FastAPI to host pygwalker. I tried "mode" and "enable_mode_option",but it didn't work. I also tried them on Jupyter lab, but the result was same. Did I miss anything?

pygwalker2

ObservedObserver commented 6 months ago

Hi, the apply above are just proposal, we havn't implement them yet. This feature will be marked P1, which will be published in one week.

relakuman commented 6 months ago

@ObservedObserver Sorry for my misunderstanding! I appreciate you for the release announcement of new function.

longxiaofei commented 6 months ago

@relakuman

pip install --upgrade pygwalker

pyg.walkwill not have mode option.