Ich habe Daten von Excel in einen Pandas Datenrahmen geladen. Ich möchte jetzt nur die Zeilen auswählen, deren BEURTEILUNGS-ID die maximale BEWERTUNGS-ID pro APPID und für alle UI-SEQ-NUMMERN für diese APPID ist.Auswählen bestimmter Zeilen in DF basierend auf 2 Spalten in Python Pandas
APPID APPNAME ASSESSMENT ID UI SEQ NUMBER QUESTION ANSWER TEXT .
1 appname 2493 11 Question No .
1 appname 13808 11 Question Ctry of domicile .
1 appname 13808 11 Question Name .
1 appname 35316 11 Question Ctry of domicile .
1 appname 35316 11 Question Name .
1 appname 35316 11 Question Nationality .
1 appname 2493 12 Question Corp name .
1 appname 2493 12 Question Cr Br Scr .
1 appname 2493 12 Question Inc And Assests .
1 appname 2493 12 Question Int, Ext Reg Reports .
1 appname 13808 12 Question Corp name .
1 appname 35316 12 Question Corp name .
1 appname 2493 13 Question No .
1 appname 13808 13 Question No .
1 appname 35316 13 Question No .
1 appname 2493 14 Question No .
1 appname 13808 14 Question firms Pos .
1 appname 35316 14 Question firms Pos .
Und das Ergebnis wäre
APPID APPNAME ASSESSMENT ID UI SEQ NUMBER QUESTION ANSWER TEXT .
1 appname 35316 11 Question Ctry of domicile .
1 appname 35316 11 Question Name .
1 appname 35316 11 Question Nationality .
1 appname 35316 12 Question Corp name .
1 appname 35316 13 Question No .
1 appname 35316 14 Question firms Pos .
Bitte [Posten Sie keine Bilder von Code (oder Links zu ihnen)] (http://meta.stackoverflow.com/questions/285551/why-may-i-not-upload-images-of-code-on-- so-wenn-Frage stellend) – jezrael
Entschuldigung für das Posten des Bildes, Aber es gab keinen anderen Weg ich konnte die Daten von hier auf Excel ohne korrekte Formatierung notieren – vivek
Hmmm, wenn Kopie Paste und addiert 4 Räume vor jeder Reihe es nicht tut Arbeit? – jezrael