Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if choice == 1:
- Dele = np.array([loadcsv.Name[index[0][0]], loadcsv.Name[index[0][1]]])
- while True:
- for i in range(len(Dele)):
- print("{:d}. {:s} n".format(i+1, Dele[i]))
- try:
- Delechoice = float(input(("Please choose who to delete. ")))
- except ValueError:
- pass
- if Delechoice == 1:
- print(loadcsv.drop_duplicates(['StudentID'], keep ='last'))
- print("{:s} has been deleted from the data. ".format(dup1[1]))
- print(loadcsv.Name)
- break
- if Delechoice == 2:
- print(loadcsv.drop_duplicates(['StudentID']))
- print("{:s} has been deleted from the data. ".format(dup2[1]))
- break
Add Comment
Please, Sign In to add comment