Giter Site home page Giter Site logo

DeprecationWarnings with Python 3.12 about ixmp4 HOT 1 OPEN

iiasa avatar iiasa commented on September 25, 2024
DeprecationWarnings with Python 3.12

from ixmp4.

Comments (1)

glatterf42 avatar glatterf42 commented on September 25, 2024

With dask v2024.2.0, we are seeing another DeprecationWarning:

.venv/lib/python3.12/site-packages/pandera/typing/dask.py:9
  /home/fridolin/ixmp4/.venv/lib/python3.12/site-packages/pandera/typing/dask.py:9: DeprecationWarning: The current Dask DataFrame implementation is deprecated. 
  In a future release, Dask DataFrame will use new implementation that
  contains several improvements including a logical query planning.
  The user-facing DataFrame API will remain unchanged.
  
  The new implementation is already available and can be enabled by
  installing the dask-expr library:
  
      $ pip install dask-expr
  
  and turning the query planning option on:
  
      >>> import dask
      >>> dask.config.set({'dataframe.query-planning': True})
      >>> import dask.dataframe as dd
  
  API documentation for the new implementation is available at
  https://docs.dask.org/en/stable/dask-expr-api.html
  
  Any feedback can be reported on the Dask issue tracker
  https://github.com/dask/dask/issues 
  
    import dask.dataframe as dd

Curiously, we use dask.dataframe as dd here:

ixmp4/ixmp4/data/db/base.py

Lines 302 to 303 in 6f71751

# https://github.com/dask/dask/issues/9710
dd.from_pandas(df, chunksize=512_000) # type: ignore

But the error message doesn't point us there. Instead, it almost looks like it refers to pandera's usage of dask.dataframe again (though if the user-facing API remains the same, why bother?). Either way, the topic has been raised with dask and they are reworking the DeprecationWarning, it seems.

from ixmp4.

Related Issues (20)

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.