-
Hi, I would like to generate a comparison viewer dashboard from prediction results saved in a DuckDB file. Below are options I unsuccessfully explored. Is that possible at all? Loading data from duckdbPREDICT_TABLE='__splink__df_predict_123abcd'
con = duckdb.connect('mypredictionresultsdb')
df_predict = con.table(PREDICT_TABLE).df()
df = ... # Load data used to generate predictions
linker = DuckDBLinker(df, connection='mypredictionresults')
linker.load_settings_from_json('settings.json')
linker.comparison_viewer_dashboard(df_predict, path, overwrite=True) This fails because df_predict is not a linker.query_sqlCreating a df_predict = linker.query_sql(f"select * from {PREDICT_TABLE}", output_type='splink_df') The
Any guidance is very much appreciated. Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @adelinor I'm not 100% sure, but It looks like you may want the register table function. So you would have:
|
Beta Was this translation helpful? Give feedback.
Hey @adelinor
I'm not 100% sure, but It looks like you may want the register table function.
So you would have: