Convert CSV to XLSX with Python Azure Function App

Asked

Viewed 24 times

1

I am trying to create a Functionapp on Azure to convert a csv file to xlsx.

My original script that works on windows local is this:

import pandas as pd

read_file = pd.read_csv ('C:/TEMP/Arquivo.csv')

read_file.to_excel ('C:/TEMP/Arquivo.xlsx', index = None, header=True)

On Azure, I am trying via Httptrigger, downloading the blob file from the Storage blob (.csv file) but without success at the time of writing the xlsx. I don’t know where to set the path to writing this.

Thank you qlqr contribution.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.