Closed
Description
In the user guide, let's use
idx, cols = pd.factorize(df['col'])
df.reindex(cols, axis=1).to_numpy()[np.arange(len(df)), idx]
instead of the current workaround
cc @erfannariman
also cc @quanghm in case you have further comments on this