The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all() , how to repaire this error

Viewed 9
if df[df["Accession"]==i]["Locus tag"]:   
    print(i, mw , df[df["Locus tag"]])

I have fasta file with genes id if this id equal to accession in csv file i need to print locus tag from csv file

0 Answers
Related