I’ve tried to connect google spreadsheet with the BUG REPORT templete and it works.
https://streamlit-example-app-bug-report-streamlit-app-lrm3fx.streamlitapp.com/
but I don’t know how to connect more sheets at once.
I’ve tried to connect google spreadsheet with the BUG REPORT templete and it works.
https://streamlit-example-app-bug-report-streamlit-app-lrm3fx.streamlitapp.com/
but I don’t know how to connect more sheets at once.
There are several functions like example-app-bug-report/streamlit_app.py at main · streamlit/example-app-bug-report · GitHub which use the constant SPREADSHEET_ID
inside of them. If you change those functions so that you pass in the spreadsheet id, you can call it with as many different spreadsheet ids as you want. For example
def get_data(gsheet_connector, spreadsheet_id) -> pd.DataFrame:
values = (
gsheet_connector.values()
.get(
spreadsheetId=spreadsheet_id,
range=f"{SHEET_NAME}!A:E",
)
.execute()
)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.