Guest User

Untitled

a guest
Jan 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. if choice == 1:
  2. Dele = np.array([loadcsv.Name[index[0][0]], loadcsv.Name[index[0][1]]])
  3. while True:
  4. for i in range(len(Dele)):
  5. print("{:d}. {:s} n".format(i+1, Dele[i]))
  6. try:
  7. Delechoice = float(input(("Please choose who to delete. ")))
  8. except ValueError:
  9. pass
  10. if Delechoice == 1:
  11. print(loadcsv.drop_duplicates(['StudentID'], keep ='last'))
  12. print("{:s} has been deleted from the data. ".format(dup1[1]))
  13. print(loadcsv.Name)
  14. break
  15.  
  16. if Delechoice == 2:
  17. print(loadcsv.drop_duplicates(['StudentID']))
  18. print("{:s} has been deleted from the data. ".format(dup2[1]))
  19. break
Add Comment
Please, Sign In to add comment