I need to read a larger csv efficiently from container using Python Azure Function.
I am using the below code for reading csv, it works fine for small csv but there must be some other way to read larger csv efficiently.
# Container Connection.
container_client1 = ContainerClient.from_connection_string(
conn_str=conn_str,
container_name=container_name
)
# Reading File.
downloaded_blob = container_client.download_blob(file_name.csv)
df = pd.read_csv(StringIO(downloaded_blob.content_as_text()))
The Above function taking too much time to read ~2gb file. I need help to efficiently read the larger csv using Python Azure Function.