Question:
New to python. Looking to find a mean of 1 column if the 2nd column is below a specific number. So let’s say I have a data frame with 4 columns, 2 of which are age and salary. I would like to find out average salary for people below 40 and for people above 40.Thanks in advance
Answer:
If you have better answer, please add a comment about this, thank you!