I have a column which is a boolean value true or false now I want the total of number of falses/true in the last row of that column, how is that possible?
I tried groubby and append but it is appending as a new column, but I need it at the bottom of the column as we do sum in excel for each cell.
Please be careful with directly tagging people one minute after you posted a question. This is usually not appreciated.
Anyway, to your question, you can solve this in a lot of different ways. Below are two options. Both involve some grouping. The first option takes about 35ms, the second one takes 39ms so from a performance point of view there is not real preference for one or the other. With the usual disclaimer that actual performance will depend on the size of the data in your actual use case, computer power, etc.