Hi!
I need help with reading excel file from dcc.Store
request_file = requests.get(file_url, headers={'X-ACCOUNT-TOKEN': token_k})
url_data = request_file.content
if file_extension == 'csv':
offer_file = pd.read_csv(io.BytesIO(url_data), sep=None, engine='python', keep_default_na=False)
else:
offer_file = pd.ExcelFile(io.BytesIO(url_data))
then i pass str(offer_file) to dcc.Store, and then i need to take it from store -> get sheet_names from offer_file and generate dataframe
but i can’t… i don’t know what should i do for properly call pd.read_excel
2 posts - 1 participant