I have a DataFrame with a labels column. The labels column is currently an array, and I would like to map the entire column to the first item of the array for each row without naively iterating.
For example, if I have 2 rows with labels values ['1','m'], ['0'], I would like to map the current values to the new values '1','0'.