Hello i want to simplfy the code below. It works but i want to create a dictionary for C9, 4A, C8 and want to do the same code with a single statement.
df.loc[df["Column"] =="C9","New_Column"]="LCV"
df.loc[df["Column"] =="4A"," New_Column"]="LCV"
df.loc[df["Column"] =="C8","New Column"]="LCV"
there is 10 lines of statament like that. If the column value is C9 or 4A or C8 i want to update the new column value to LCV.
i will be grateful if you can help me.
Best Regards..