Giter Site home page Giter Site logo

Q: Multicore support? about h3-pandas HOT 4 CLOSED

dahnj avatar dahnj commented on August 20, 2024
Q: Multicore support?

from h3-pandas.

Comments (4)

DahnJ avatar DahnJ commented on August 20, 2024 1

Hi @diehl in general the answer is no, H3-Pandas only adds h3-related functionality to Pandas Dataframes and as such does not suport concurrency.

However, you can use Dask and Dask-Geopandas to achieve this fairly easily. See the section "Dask-GeoPandas example" in this example.

from h3-pandas.

DahnJ avatar DahnJ commented on August 20, 2024 1

Sounds good!

By the way, with Dask distributed, you don't need to embed the import into your functions: since you have a stable set of workers, you can simply import h3pandas once on them after startup.

Sample code

from dask.distributed import Client

client = Client()

def import_h3pandas():
    import h3pandas

client.run(import_h3pandas)

from h3-pandas.

diehl avatar diehl commented on August 20, 2024

Thanks @DahnJ - That is exactly the route I'm heading down now. Going to use Coiled to parallelize the computation in the cloud.

from h3-pandas.

diehl avatar diehl commented on August 20, 2024

I appreciate that pointer @DahnJ!

from h3-pandas.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.