In table A, there’s columns 1 and 2.
- Column 1 is unique id’s like (‘A12324’) and column 2 is blank for now.
- I want to fill the value of column 2 with Yes if the id starts with A, and else No.
Is any one familiar with how I can maybe use a left for this?
I tried this but my error read that left is not defined.
TableA.loc[TableA['col1'] == left('A',1), 'hasAnA'] = 'Yes'