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

resolves Overlay fails with Python 3.11.0 #1086 #1089

Closed
wants to merge 1 commit into from

Conversation

sammlapp
Copy link
Collaborator

there was an issue specifically with python 3.11.0 where random.choice(df.index) fails, so we instead use random.choice(list(df.index))

there was an issue specifically with python 3.11.0 where random.choice(df.index) fails, so we instead use random.choice(list(df.index))
@sammlapp
Copy link
Collaborator Author

sammlapp commented Jan 21, 2025

eh, this is quite slow for a very large index because list(df.index) is performed each time. On dataframe with 1M rows, takes 30 ms instead of 4.5 us

@sammlapp
Copy link
Collaborator Author

apparently, this is a python 3.11.0 bug, let's just dis-allow that specific release
numpy/numpy#28204 (comment)

@sammlapp sammlapp closed this Jan 21, 2025
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 this pull request may close these issues.

1 participant