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

feat: support custom ask callback function #477

Closed longxiaofei closed 6 months ago

longxiaofei commented 6 months ago

Users can customize ask callback function.

example:

from typing import List, Dict, Any

def ask_callback(metas: List[Dict[str, Any]], query: str) -> Dict[str, Any]:
    return {}

pyg.walk(df, custom_ask_callback=ask_callback)