ashishdubey10 / Face-Recognition-Based-Attendance-System

190 stars 166 forks source link

Getting error in line #4

Closed ghost closed 6 years ago

ghost commented 6 years ago

Traceback (most recent call last): File "C:\Users\Rishi147\AppData\Local\Programs\Python\Python36\lib\tkinter__init.py", line 1702, in call return self.func(*args) File "D:\mini project\New folder\test.py", line 185, in TrackImages aa=df.loc[df['Id'] == Id]['Name'].values File "C:\Users\Rishi147\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\frame.py", line 2688, in getitem__ return self._getitem_column(key) File "C:\Users\Rishi147\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\frame.py", line 2695, in _getitem_column return self._get_item_cache(key) File "C:\Users\Rishi147\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\generic.py", line 2489, in _get_item_cache values = self._data.get(item) File "C:\Users\Rishi147\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\internals.py", line 4115, in get loc = self.items.get_loc(item) File "C:\Users\Rishi147\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\indexes\base.py", line 3080, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas_libs\index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas_libs\hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'Id'

AbhiRudra commented 6 years ago

same error for me too.. have you got any solution?

ghost commented 6 years ago

Add column names as Id and Name in StudentDetails\StudentDetails.csv file.

AbhiRudra commented 6 years ago

How should i do that will you help me?

On Mon, Oct 22, 2018 at 12:27 AM Rishikusumba notifications@github.com wrote:

Add column names as Id and Name in StudentDetails\StudentDetails.csv file.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ashish8858/Face-Recognition-Based-Attendance-System/issues/4#issuecomment-431694397, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai1h86yq2pdL6RfJOScPDw6As8LKpA-Uks5unMOPgaJpZM4Xyb2G .

ghost commented 6 years ago

In StudentDetails folder u will find a csv file after taking images of user. Just add two columns at the top and name 1st column as Id and other column as Name and save it. Now everything should work fine

AbhiRudra commented 6 years ago

Thank you so much.. worked for me..! Great help!

On Mon 22 Oct, 2018, 12:58 AM Rishikusumba, notifications@github.com wrote:

Closed #4 https://github.com/ashish8858/Face-Recognition-Based-Attendance-System/issues/4 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ashish8858/Face-Recognition-Based-Attendance-System/issues/4#event-1916798253, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai1h86nGbdFWUNFNZJnR4Li0ZUf6bHK_ks5unMrPgaJpZM4Xyb2G .

Ahmadjan9687 commented 4 years ago

thank you so much @Rishikusumba you made me happy to resolve this issue.

rajivpatnaikiot commented 4 years ago

Thanks a Lot @Rishikusumba. Its working.

Ahmadjan9687 commented 4 years ago

what should i do first? Us just to subscribe u..

On Thu, Oct 29, 2020, 1:19 PM rajivpatnaikiot notifications@github.com wrote:

Thanks a Lot @Rishikusumba https://github.com/Rishikusumba. Its working.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ashishdubey10/Face-Recognition-Based-Attendance-System/issues/4#issuecomment-718467294, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANR2II6WJAOBWH6QLK5ZPALSNEQQ3ANCNFSM4F6JXWDA .