Skip to content
New issue

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

Modify list comprehensions to use pandas where possible #22

Closed
davedavemckay opened this issue Aug 5, 2024 · 0 comments · Fixed by #23
Closed

Modify list comprehensions to use pandas where possible #22

davedavemckay opened this issue Aug 5, 2024 · 0 comments · Fixed by #23
Assignees

Comments

@davedavemckay
Copy link
Collaborator

For examples of long Python List objects, converting to Pandas Series and using Series.isin([value]).any() instead of value in list is on the order of 1000 times faster due to hashing.

@davedavemckay davedavemckay self-assigned this Aug 5, 2024
@davedavemckay davedavemckay linked a pull request Aug 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant