QuestionQ140

Set up and navigate the Snowflake user interface and Snowflake Notebooks

Which code references the results of an earlier SQL cell named my_cell from another Snowflake Notebook cell?

Explanation

A previously run SQL cell can be referenced by its cell name in a Python Notebook cell, and my_cell.to_df() converts that SQL result into a Snowpark DataFrame. Snowflake documents this pattern as cell1.to_df() for SQL-cell output referenced from Python.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!