Error DeltaGenerator

Hi everyone,
I am new here
And i am so excited about streamlit
I want to ask about my case
I am having error message:
<streamlit.delta_generator.DeltaGenerator object at 0x000001D2F22A5610>

And here is my code:

import streamlit as st
import pandas as pd

import sqlite3
conn = sqlite3.connect('data.db')
c = conn.cursor()

def view_all_data():
    c.execute('SELECT * FROM table1')
    data = c.fetchall()
    return data

pd.read_table = st.write(st.table(view_all_data()))

Instead of the pd.read_table line, try one of these

table = view_all_data()





1 Like

Thank you, it works :slight_smile:

1 Like

Glad it works and good luck with your app! :smiley: