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

Randomly sampling from geopandas dataframe #811

Open
kevalshah90 opened this issue Aug 29, 2018 · 2 comments
Open

Randomly sampling from geopandas dataframe #811

kevalshah90 opened this issue Aug 29, 2018 · 2 comments

Comments

@kevalshah90
Copy link

This is probably not an issue with the library - I was wondering if the community has any idea about https://gis.stackexchange.com/questions/294394/randomly-sample-from-geopandas-dataframe-in-python? Thanks!

@ljwolf
Copy link
Member

ljwolf commented Aug 29, 2018

I know pysal/pointpats does this, but we may need to update our documentation for getting there from geopandas.

I'll have to take a look, but I know a few random sampling methods are implemented there by my colleagues.

@Casyfill
Copy link
Contributor

Casyfill commented Sep 8, 2018

won't gdf.sample be sufficient?

Ah sorry got it wrong from the name;
there is a similar question on the same StackExchange.
https://gis.stackexchange.com/questions/207731/how-to-generate-random-coordinates-in-a-multipolygon-in-python

but probably there should be a faster way (numba/cython + quadtree?)

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

No branches or pull requests

3 participants