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

refactor: use spec_io_mode instead of debug parameter #472

Closed longxiaofei closed 6 months ago

longxiaofei commented 6 months ago

The previous 'debug' parameter was only used to restrict the ability to read and write spec files. We believe this parameter name is not meaningful, and we are replacing it with 'spec_io_mode.'

The 'spec_io_mode' parameter currently has two options: 'r' and 'wr,' where 'r' indicates that the spec is read-only, and 'wr' indicates that spec files can be saved.

previous:

StreamlitRenderer(df, spec="./gw_config.json", debug=True)

current:

StreamlitRenderer(df, spec="./gw_config.json", spec_io_mode="rw")