Replacing pandas' .apply with Numpy's .where / .select
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.2k
- Forks
- 916
- Avg merge
- 17h 31m
- Merged PRs (30d)
- 4
Description
Just watched the nice talk by Nathan Cheever at https://www.youtube.com/watch?v=nxWginnBklU,
and it would be nice to go through the code base and replace all instances of pandas .apply with Numpy's .where / .select wherever possible.


Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the mlxtend codebase for uses of pandas .apply and review each one for replacement with NumPy where or select. The work is complete when every applicable use has been evaluated and replaced without changing behavior, but the issue does not identify specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, pandas, python
- Domain
- data, performance
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100