Вот мой тестовый код с azure.storage.blob
v2.1. Предположим, что ваша проблема заключается в том, что для метода get_blob_to_path
требуется параметр file_path
, вы можете проверить определение метода:
get_blob_to_path(
self, container_name, blob_name, file_path, open_mode='wb',
snapshot=None, start_range=None, end_range=None,
validate_content=False, progress_callback=None,
max_connections=2, lease_id=None, if_modified_since=None,
if_unmodified_since=None, if_match=None,
if_none_match=None, timeout=None, cpk=None)
import os
from azure.storage.blob import BlockBlobService
import pandas as pd
connect_str='account connection string'
block_blob_service = BlockBlobService(connection_string=connect_str)
container_name = 'test'
blob_name='test.csv'
local_file_name = blob_name
full_path_to_file = os.path.join("E:\project\pystorage", local_file_name)
block_blob_service.get_blob_to_path(container_name, local_file_name,full_path_to_file)
df=pd.read_csv(full_path_to_file)
print(df)
![enter image description here](https://i.stack.imgur.com/OdIms.png)