Database example to replace BI tool

@knorthover, can you please share an example of how to properly cache the Pandas dataframe containing the BigQuery data? I am getting my dataframe from BigQuery as well, by using the below code, but when I try to use the @st.cache before my function definition, I get an error about hashing.

df = (
bqclient.query(query_string)
.result()
.to_dataframe(bqstorage_client=bqstorageclient)
)