banking-faq-bot icon indicating copy to clipboard operation
banking-faq-bot copied to clipboard

error#3

Open Farha443 opened this issue 4 years ago • 0 comments

Bot: Hi, Welcome to our bank! You: What are the documents required for opening a Current Account of a sole proprietorship firm Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 2646, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'question'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/adnan/PycharmProjects/untitled/banking-faq-bot-master/Bank FAQbot.py", line 152, in chat() File "/Users/adnan/PycharmProjects/untitled/banking-faq-bot-master/Bank FAQbot.py", line 115, in chat for question in questionset['question']: File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/frame.py", line 2800, in getitem indexer = self.columns.get_loc(key) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 2648, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'question'

Process finished with exit code 1

#this issue iam not able to resolve in your code

Farha443 avatar May 26 '20 07:05 Farha443