I have this csv with a column containing a mix of string and integer types. (ie, 6 Years and 12 Months). I am trying to find a way to convert the 'years' and 'months' into a new array containing just the months.
YrsAndMonths=np.array(['6 Years and 12 Months','7 Years and 8 Months','2 Years'])
I am trying to get an output of something like Months=['84','92','24'] Not really sure how to proceed from here.

snake_case_varsinstead ofCamelCaseVars. Usingyears_and_monthswould make the code more readable.