WhiskyDB: producers & brands; auction index to Nov 2024 (edition 2026.11)
Browse files
app.py
CHANGED
|
@@ -197,7 +197,7 @@ def w_explore(query, spirit_type):
|
|
| 197 |
d = d[d["type"] == spirit_type]
|
| 198 |
summary = (
|
| 199 |
f"**{len(d)} spirits** match β out of {len(w_df)} in the free sample. "
|
| 200 |
-
f"The full WhiskyDB has **2,700+ spirits, 2,500+
|
| 201 |
)
|
| 202 |
return summary, d[list(W_COLS)].rename(columns=W_COLS)
|
| 203 |
|
|
@@ -260,7 +260,7 @@ with gr.Blocks(title="Dataset Sample Explorers") as demo:
|
|
| 260 |
demo.load(fn=s_explore, inputs=s_inputs, outputs=[s_text, s_table])
|
| 261 |
|
| 262 |
with gr.Tab("π₯ WhiskyDB β Fine Spirits"):
|
| 263 |
-
gr.Markdown(f"""**{len(w_df)} spirits + {len(w_dist_df)} distilleries**, provenance-tracked from open public sources, with **fully open cask & flavor taxonomies** (CC BY 4.0). Full dataset: **2,700+ spirits, 2,500+
|
| 264 |
with gr.Row():
|
| 265 |
w_query = gr.Textbox(label="Spirit Search", placeholder="e.g. Lagavulin, Eagle Rare, Yamazaki...")
|
| 266 |
w_type = gr.Dropdown(choices=choices(w_df, "type"), value="All", label="Spirit Type")
|
|
|
|
| 197 |
d = d[d["type"] == spirit_type]
|
| 198 |
summary = (
|
| 199 |
f"**{len(d)} spirits** match β out of {len(w_df)} in the free sample. "
|
| 200 |
+
f"The full WhiskyDB has **2,700+ spirits, 2,500+ producers & brands and 7,000+ distillery-month auction-price index values (Nov 2005 β Nov 2024)**."
|
| 201 |
)
|
| 202 |
return summary, d[list(W_COLS)].rename(columns=W_COLS)
|
| 203 |
|
|
|
|
| 260 |
demo.load(fn=s_explore, inputs=s_inputs, outputs=[s_text, s_table])
|
| 261 |
|
| 262 |
with gr.Tab("π₯ WhiskyDB β Fine Spirits"):
|
| 263 |
+
gr.Markdown(f"""**{len(w_df)} spirits + {len(w_dist_df)} distilleries**, provenance-tracked from open public sources, with **fully open cask & flavor taxonomies** (CC BY 4.0). Full dataset: **2,700+ spirits, 2,500+ producers & brands, 7,000+ distillery-month auction-price index values (Nov 2005 β Nov 2024)** β [whiskydb.dataengineered.io](https://whiskydb.dataengineered.io) Β· [π€ sample dataset](https://huggingface.co/datasets/Ichlibitiche/whiskydb-fine-spirits-sample) Β· [π Kaggle](https://www.kaggle.com/datasets/dataengineered/whiskydb-fine-spirits-sample) Β· [π GitHub](https://github.com/WhiskyyDB/whisky-database)""")
|
| 264 |
with gr.Row():
|
| 265 |
w_query = gr.Textbox(label="Spirit Search", placeholder="e.g. Lagavulin, Eagle Rare, Yamazaki...")
|
| 266 |
w_type = gr.Dropdown(choices=choices(w_df, "type"), value="All", label="Spirit Type")
|