I am trying to clean csv files so I retrieved all values which contained dashes in my ages column and I have this output
504 40-49
756 20-29
758 40-89
- I would like to have the age mean instead of recording the age range as start_age-end_age.
- I tried to compute the means but I cannot convert it to numeric, due to the dashes. I am expected this output :
504 45
756 25