Attendace_management_system
Attendace_management_system copied to clipboard
KeyError: 'Enrollment'
Kamakshis-MacBook-Pro-8:p1 kamakshi$ python3 AMS_Run.py 31.00870159238623 Exception in Tkinter callback Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2897, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'Enrollment'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/init.py", line 1705, in call return self.func(*args) File "AMS_Run.py", line 359, in Fillattendances aa = df.loc[df['Enrollment'] == Id]['Name'.values] File "/usr/local/lib/python3.7/site-packages/pandas/core/frame.py", line 2995, in getitem indexer = self.columns.get_loc(key) File "/usr/local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2899, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'Enrollment'
Anyone to help with this problem?
Simple, check your CSV file and match the header name. if it would be different then this error happens.
On Mon, Jun 8, 2020 at 7:05 PM Hojeah2663 [email protected] wrote:
Anyone to help with this problem?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Spidy20/Attendace_management_system/issues/2#issuecomment-640606664, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKA3TJA3DSFO2JTTETDWFOLRVTSIZANCNFSM4JJP6DKA .
Anyone to help with this problem?
have you solve this issue
Yes, I can solve remotely for you, but it will be paid, If you want to do it by yourself then check the CSV file. Something is wrong in that.
On Fri, Oct 9, 2020 at 3:04 AM Talha Yaqoob [email protected] wrote:
Anyone to help with this problem?
have you solve this issue
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Spidy20/Attendace_management_system/issues/2#issuecomment-705835948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKA3TJG44MVNSUTHFYOLQYDSJYV6HANCNFSM4JJP6DKA .