Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Python中将数据帧值插入Azure表存储时出现问题_Python_Pandas_Azure_Azure Table Storage - Fatal编程技术网

在Python中将数据帧值插入Azure表存储时出现问题

在Python中将数据帧值插入Azure表存储时出现问题,python,pandas,azure,azure-table-storage,Python,Pandas,Azure,Azure Table Storage,我正在尝试使用Python将数据帧推送到Azure表存储。但是当我尝试插入一个值时,这些值变得混乱,而且一些记录没有插入Azure。我不知道是不是因为时间问题。请在下面查找代码 for i in range(0,forecast.shape[0]): partition_key=ticker+str(i) stock_date=str(forecast.iloc[i]['ds']) row_key=partition_key stock_price=str(forecast.iloc[i]['y

我正在尝试使用Python将数据帧推送到Azure表存储。但是当我尝试插入一个值时,这些值变得混乱,而且一些记录没有插入Azure。我不知道是不是因为时间问题。请在下面查找代码

for i in range(0,forecast.shape[0]):
partition_key=ticker+str(i)
stock_date=str(forecast.iloc[i]['ds'])
row_key=partition_key
stock_price=str(forecast.iloc[i]['yhat'])
companyname=str(forecast.iloc[i]['Company_Name'])
task = {'PartitionKey': partition_key, 'RowKey': row_key, 'StockPrice':stock_price, 'CompanyName':companyname,'Stock_date':stock_date}
v=table_service_actual.insert_entity("StockPricePrediction",task)
但在我的Power BI中,当我尝试访问表存储时:

但我的实际数据帧如下所示:


请帮我解决这个问题。我也尝试过批量插入。

原因是订购。由于Azure使用排序索引,因此需要对分区键进行排序。考虑将排序索引作为分区键