Closed longxiaofei closed 6 months ago
pyg.render(df, spec)
def render( dataset: Union[DataFrame, Connector, str], spec: str, *, theme_key: Literal['vega', 'g2'] = 'g2', dark: Literal['media', 'light', 'dark'] = 'media', use_kernel_calc: Optional[bool] = None, kanaries_api_key: str = "", **kwargs ): """ Args: - dataset (pl.DataFrame | pd.DataFrame | Connector, optional): dataframe. - spec (str): chart config data. config id, json, remote file url Kargs: - theme_key ('vega' | 'g2'): theme type. - dark (Literal['media' | 'light' | 'dark']): 'media': auto detect OS theme. - use_kernel_calc(bool): Whether to use kernel compute for datas, Default to None. - kanaries_api_key (str): kanaries api key, Default to "". """ pass
pyg.table(df)
def table( dataset: Union[DataFrame, Connector, str], *, theme_key: Literal['vega', 'g2'] = 'g2', dark: Literal['media', 'light', 'dark'] = 'media', use_kernel_calc: Optional[bool] = None, kanaries_api_key: str = "", **kwargs ): """ Args: - dataset (pl.DataFrame | pd.DataFrame | Connector, optional): dataframe. Kargs: - theme_key ('vega' | 'g2'): theme type. - dark (Literal['media' | 'light' | 'dark']): 'media': auto detect OS theme. - use_kernel_calc(bool): Whether to use kernel compute for datas, Default to None. - kanaries_api_key (str): kanaries api key, Default to "". """ pass
pyg.render(df, spec)
pyg.table(df)