I have a column in a df with strings such as ABABAB, i would like to create a new column in such df that would bring just non-repeated characters of such strings, in the example above, just AB.
I have tried ''.join() but this does not work well with I get an error message saying that a string was expected.
Illustrative desired outcome:
Column_1 Column_2
ABABAB AB
KGKGKG KG
ACACAC AC
PCTPCTPCT PCT
Please keep in mind there are situations in which the unique characters are more than just two
Thank you in Advance!