Hi there - you’re really close! You’re getting this error because you’re passing the Media object directly into pd.read_excel(), which doesn’t understand Media objects. But you can write the Media out to a temporary file, and load it from there:
import anvil.media
with anvil.media.TempFile(data_file_row['file']) as filename:
df = pd.read_excel(filename, sheet_name='Sheet_1')
@alcampopiano. @meredydd, Thanks!
Both of those will be useful in due course. I am using
m=app_tables.reference_files.get(name="foo")["file"]
cofr_df=pd.read_csv(io.BytesIO(m.get_bytes()), index_col=0) ```
and it seems to be doing the trick.
we will write the name of our data table in which that file is stored or the actual name of the file which we uploaded in our data table in place of ‘file’
kindly help me, which things do i have to alter