Attendace_management_system icon indicating copy to clipboard operation
Attendace_management_system copied to clipboard

KeyError: 'Enrollment'

Open Kamakshi-Raya opened this issue 6 years ago • 4 comments

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'

Kamakshi-Raya avatar Nov 06 '19 05:11 Kamakshi-Raya

Anyone to help with this problem?

Hojeah2663 avatar Jun 08 '20 13:06 Hojeah2663

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 .

Spidy20 avatar Jun 08 '20 15:06 Spidy20

Anyone to help with this problem?

have you solve this issue

TalhaaaYaqoob avatar Oct 08 '20 21:10 TalhaaaYaqoob

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 .

Spidy20 avatar Oct 09 '20 02:10 Spidy20