rasbt / rasbt/mlxtend

Replacing pandas' .apply with Numpy's .where / .select

Open
#655 0 comments 0 reactions 0 assignees View on GitHub

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.

screen_shot_2020-01-09_at_8 29 42_pm
screen_shot_2020-01-09_at_8-1 35 21_pm

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.