I have the following dataframe:
Policy_id Value
A xyz
B abc
A pqr
C lmn
And I want to use np.where()
such that whenever the policy_id
is equal to A
the corresponding value must be appended with a *
.
Policy_id Value
A xyz*
B abc
A pqr*
C lmn
How do I achieve this?