-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem in option 4 #33
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traceback (most recent call last):
File "C:\Users\lssik\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
return self._engine.get_loc(casted_key)
File "pandas_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'Id'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\lssik\AppData\Roaming\Python\Python38\site-packages\IPython\core\interactiveshell.py", line 3418, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('C:/Users/lssik/Desktop/New folder/Face-Recognition-Attendance-System/Face-Recognition-Attendance-System/FRAS/main.py', wdir='C:/Users/lssik/Desktop/New folder/Face-Recognition-Attendance-System/Face-Recognition-Attendance-System/FRAS')
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1\plugins\python-ce\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents "\n", file, 'exec'), glob, loc)
File "C:/Users/lssik/Desktop/New folder/Face-Recognition-Attendance-System/Face-Recognition-Attendance-System/FRAS/main.py", line 101, in
mainMenu()
File "C:/Users/lssik/Desktop/New folder/Face-Recognition-Attendance-System/Face-Recognition-Attendance-System/FRAS/main.py", line 47, in mainMenu
RecognizeFaces()
File "C:/Users/lssik/Desktop/New folder/Face-Recognition-Attendance-System/Face-Recognition-Attendance-System/FRAS/main.py", line 95, in RecognizeFaces
Recognize.recognize_attendence()
File "C:\Users\lssik\Desktop\New folder\Face-Recognition-Attendance-System\Face-Recognition-Attendance-System\FRAS\Recognize.py", line 39, in recognize_attendence
aa = df.loc[df['Id'] == Id]['Name'].values
File "C:\Users\lssik\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\frame.py", line 3455, in getitem
indexer = self.columns.get_loc(key)
File "C:\Users\lssik\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
raise KeyError(key) from err
KeyError: 'Id'
The text was updated successfully, but these errors were encountered: