pandas – from umeric to string

df['A'] = df['A'].apply(str)

Here is what the above code is Doing:
1. We’re creating a new column called ‘A’ and assigning it the values of the ‘A’ column in the original dataframe.
2. We’re using the apply() method to apply the str() function to every element in the ‘A’ column.
3. We’re assigning the result of the apply() method back to the ‘A’ column in the original dataframe.