Python 使用Neo4j向图形数据库添加数据时出现关键错误。这个错误意味着什么?

Python 使用Neo4j向图形数据库添加数据时出现关键错误。这个错误意味着什么?,python,pandas,neo4j,graph-databases,Python,Pandas,Neo4j,Graph Databases,我遵循以下指南: 运行“添加作者”(authors)和“添加论文”(df)功能时,我收到一条错误消息: KeyError Traceback (most recent call last) ~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 2645

我遵循以下指南:

运行“添加作者”(authors)和“添加论文”(df)功能时,我收到一条错误消息:

    KeyError                                  Traceback (most recent call last)
~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
   2645             try:
-> 2646                 return self._engine.get_loc(key)
   2647             except KeyError:

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()

pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()

KeyError: 10000

During handling of the above exception, another exception occurred:

KeyError                                  Traceback (most recent call last)
<ipython-input-8-0d592471d0d9> in <module>
     10 
     11 add_categories(categories)
---> 12 add_authors(authors)
     13 add_papers(df)

<ipython-input-6-9e1a84525030> in add_authors(rows, batch_size)
     16             RETURN count(*) as total
     17             '''
---> 18     return insert_data(query, rows, batch_size)
     19 
     20 

<ipython-input-6-9e1a84525030> in insert_data(query, rows, batch_size)
     28 
     29     while batch * batch_size < len(rows):
---> 30         res = conn.query(query, parameters= {'rows':rows[(batch*batch_size+1)*batch_size].to_dict('records')})
     31         total += res[0]['total']
     32         batch += 1

~\anaconda3\lib\site-packages\pandas\core\frame.py in __getitem__(self, key)
   2798             if self.columns.nlevels > 1:
   2799                 return self._getitem_multilevel(key)
-> 2800             indexer = self.columns.get_loc(key)
   2801             if is_integer(indexer):
   2802                 indexer = [indexer]

~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
   2646                 return self._engine.get_loc(key)
   2647             except KeyError:
-> 2648                 return self._engine.get_loc(self._maybe_cast_indexer(key))
   2649         indexer = self.get_indexer([key], method=method, tolerance=tolerance)
   2650         if indexer.ndim > 1 or indexer.size > 1:

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()

pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()

KeyError: 10000
keyrerror回溯(最近一次调用)
get\u loc中的~\anaconda3\lib\site packages\pandas\core\index\base.py(self、key、method、tolerance)
2645请尝试:
->2646返回自引擎。获取位置(钥匙)
2647键错误除外:
熊猫\\u libs\index.pyx在熊猫中。\ u libs.index.IndexEngine.get_loc()
熊猫\\u libs\index.pyx在熊猫中。\ u libs.index.IndexEngine.get_loc()
pandas\\u libs\hashtable\u class\u helper.pxi在pandas.\u libs.hashtable.PyObjectHashTable.get\u item()中
pandas\\u libs\hashtable\u class\u helper.pxi在pandas.\u libs.hashtable.PyObjectHashTable.get\u item()中
关键字错误:10000
在处理上述异常期间,发生了另一个异常:
KeyError回溯(最近一次呼叫最后一次)
在里面
10
11添加_类别(类别)
--->12添加作者(作者)
13增补论文(df)
添加作者(行、批大小)
16返回计数(*)总计
17             '''
--->18返回插入数据(查询、行、批量大小)
19
20
插入数据(查询、行、批量大小)
28
29当批次*批次大小30 res=conn.query(查询,参数={'rows':行[(批处理*批处理大小+1)*批处理大小]。to_dict('records'))
31总计+=res[0]['total']
32批次+=1
~\anaconda3\lib\site packages\pandas\core\frame.py in\uuuu\getitem\uuuuuuu(self,key)
2798如果self.columns.nlevels>1:
2799返回自我。\u获取项目\u多级(键)
->2800索引器=self.columns.get_loc(键)
2801如果是_整数(索引器):
2802索引器=[索引器]
get\u loc中的~\anaconda3\lib\site packages\pandas\core\index\base.py(self、key、method、tolerance)
2646返回自引擎。获取位置(钥匙)
2647键错误除外:
->2648返回self.\u引擎。获取self.\u loc(self.\u可能\u cast\u索引器(键))
2649 indexer=self.get\u indexer([key],method=method,tolerance=tolerance)
2650如果indexer.ndim>1或indexer.size>1:
熊猫\\u libs\index.pyx在熊猫中。\ u libs.index.IndexEngine.get_loc()
熊猫\\u libs\index.pyx在熊猫中。\ u libs.index.IndexEngine.get_loc()
pandas\\u libs\hashtable\u class\u helper.pxi在pandas.\u libs.hashtable.PyObjectHashTable.get\u item()中
pandas\\u libs\hashtable\u class\u helper.pxi在pandas.\u libs.hashtable.PyObjectHashTable.get\u item()中
关键字错误:10000

这个错误是什么意思?我如何修复它?

您确定可以从python连接到neo4j数据库吗?给我连接螺栓的url,id和密码,这样我可以为您验证它。