I am having a dataframe column that contains either 4 or 6 char strings in length, I would like to add "00" string to the end of the strings having length of 4.
I am using this code but its giving me a syntax error.
df['col'] = np.where((df['col'].str.len() = 4, df['col'].astype(str) +'00' , df['col']'])
df['col'].str.len() == 4(you forgot one=sign)