hi , i used this code for my project work but on differnt datasets..so each time i had to edit the data
totalMails variable. so i thought if you replece that part it code will be more efficient.
i used this code to calculate totalMails variable in the code;
hi , i used this code for my project work but on differnt datasets..so each time i had to edit the data totalMails variable. so i thought if you replece that part it code will be more efficient. i used this code to calculate totalMails variable in the code;
number_of_mails = mails['labels'].value_counts() count_array = pd.Series(number_of_mails).values totalMails = count_array[0] + count_array[1] print(totalMails)