Relative Content

Tag Archive for snowflake-cloud-data-platformstreamlit

Add empty columns to Snowpark’s Row Object

I am new to Streamlit-in-Snowflake and am using the Snowflake IDE (SnowSight).
I have the following command: data = session.sql(sql_statement).collect()
This works fine and Streamlit has the query executed and loads the results.

AttributeError: module ‘streamlit’ has no attribute ‘connection’

Traceback: File “/usr/lib/python_udf/3dddbf5d6aecbf84663dccc617833ebd4259a340dc5b8c7400c09b95b823aee0/lib/python3 .8/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 565, in _run_script exec(code, module.__dict__) File “/tmp/appRoot/streamlit_app.py”, line 23, in <module> cnx=st.connection(“snowflake”) # Import python packages import streamlit as st from snowflake.snowpark.functions import col # Write directly to the app st.title(“Customize Your Smoothie :cup_with_straw:”) st.write( “””Choose the fruits you want in your custom Smoothie! “”” ) name_on_order = st.text_input(“Name on […]

Reading pickle from Snowflake stage into Streamlit Application

I am considering to use Snowflake’s Streamlit App to make some validation reports. However, I cannot find information is there an easy way to read data from snowflake stage (pickled data frames, model files, etc.) to Streamlit application. I tried to load model file and print summary like that: