Signature:
pyg.walk(
df: 'pl.DataFrame | pd.DataFrame',
gid: Union[int, str] = None,
*,
env: Literal['Jupyter', 'Streamlit'] = 'Jupyter',
fieldSpecs: Dict[str, pygwalker.utils.gwalker_props.FieldSpec] = {},
hideDataSourceConfig: bool = True,
themeKey: Literal['vega', 'g2'] = 'g2',
dark: Literal['media', 'light', 'dark'] = 'media',
return_html: bool = False,
**kwargs,
)
Docstring:
Walk through pandas.DataFrame df with Graphic Walker
Args:
- df (pl.DataFrame | pd.DataFrame, optional): dataframe.
- gid (Union[int, str], optional): GraphicWalker container div's id ('gwalker-{gid}')
Kargs:
- env: (Literal['Jupyter' | 'Streamlit'], optional): The enviroment using pygwalker. Default as 'Jupyter'
- fieldSpecs (Dict[str, FieldSpec], optional): Specifications of some fields. They'll been automatically inferred from `df` if some fields are not specified.
- hideDataSourceConfig (bool, optional): Hide DataSource import and export button (True) or not (False). Default to True
- themeKey ('vega' | 'g2'): theme type.
- dark (Literal['media' | 'light' | 'dark']): 'media': auto detect OS theme.
- return_html (bool, optional): Directly return a html string. Defaults to False.
File: ~/Workspace/develop/pygwalker/pygwalker/gwalker.py
Type: function