We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#39171 (comment)
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
https://pandas.pydata.org/pandas-docs/dev/user_guide/indexing.html#looking-up-values-by-index-column-labels
cc @erfannariman also cc @quanghm in case you have further comments on this
The text was updated successfully, but these errors were encountered:
Hi MacroGorelli, Can I take this issue and work on it.
Sorry, something went wrong.
sure, PRs welcome
Thanks MarcoGorelli, I have raised a PR #42110. Can you pls review it and let me know if there are changes required.
raghuabhishek
Successfully merging a pull request may close this issue.
#39171 (comment)
In the user guide, let's use
instead of the current workaround
https://pandas.pydata.org/pandas-docs/dev/user_guide/indexing.html#looking-up-values-by-index-column-labels
cc @erfannariman
also cc @quanghm in case you have further comments on this
The text was updated successfully, but these errors were encountered: