Closed
Description
Pandas version checks
- I have checked that the issue still exists on the latest versions of the docs on
main
here
Location of the documentation
Lines 4562 to 4566 in 12475e0
Documentation problem
It suggested to use loc
and melt
. However, the example from https://pandas.pydata.org/docs/user_guide/indexing.html#indexing-lookup suggests to instead use factorize
and NumPy indexing.
This a lot faster, so that should be suggested instead
Suggested fix for documentation
Suggest to use factorize
and NumPy
indexing, rather than loc
and melt