-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve: SQL examples #2527
improve: SQL examples #2527
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
|
||
@app.cell | ||
def __(db, duckdb_table, mo, test_table): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated, but this import duckdb_table
seems incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea weird that it's a def and a ref ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Python code has logic for not registering something as a ref if it's a def, SQL could be missing that
@app.cell(hide_code=True) | ||
def __(): | ||
import marimo as mo | ||
import pandas as pd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit; but i feel like we should use polars (instead of pandas) when possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea i agree in general but i'd like to host these on WASM too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes good call - we did discuss that
Create a collection of bite-sized examples showing how to use SQL: