diff --git a/examples/docs_beta_snippets/docs_beta_snippets/getting-started/quickstart.py b/examples/docs_beta_snippets/docs_beta_snippets/getting-started/quickstart.py index 7122b83c85585..ffe984aadee85 100644 --- a/examples/docs_beta_snippets/docs_beta_snippets/getting-started/quickstart.py +++ b/examples/docs_beta_snippets/docs_beta_snippets/getting-started/quickstart.py @@ -1,4 +1,5 @@ import pandas as pd + import dagster as dg diff --git a/python_modules/libraries/dagster-duckdb/dagster_duckdb_tests/test_resource.py b/python_modules/libraries/dagster-duckdb/dagster_duckdb_tests/test_resource.py index feebf5f3a9c8a..6f9e15480609e 100644 --- a/python_modules/libraries/dagster-duckdb/dagster_duckdb_tests/test_resource.py +++ b/python_modules/libraries/dagster-duckdb/dagster_duckdb_tests/test_resource.py @@ -7,19 +7,20 @@ def test_resource(tmp_path): - df = pd.DataFrame({"a": [1, 2, 3], "b": [5, 6, 7]}) + sample_df = pd.DataFrame({"a": [1, 2, 3], "b": [5, 6, 7]}) @asset def create_table(duckdb: DuckDBResource): + my_df = sample_df # noqa: F841 with duckdb.get_connection() as conn: - conn.execute("CREATE TABLE my_table AS SELECT * FROM df") + conn.execute("CREATE TABLE my_table AS SELECT * FROM my_df") @asset def read_table(duckdb: DuckDBResource): with duckdb.get_connection() as conn: res = conn.execute("SELECT * FROM my_table").fetchdf() - assert res.equals(df) + assert res.equals(sample_df) materialize( [create_table, read_table],