Pass data to app.py

Suppose I have a pandas dataframe and I want to pass it to my streamlit app so that I can do some basic plots. Can this be done somehow please? I am launching my streamlit app by:

import streamlit.bootstrap 
streamlit.bootstrap.run(filename, '', [], flag_options={})