dask-expr


Namedask-expr JSON
Version 1.1.21 PyPI version JSON
download
home_pageNone
SummaryHigh Level Expressions for Dask
upload_time2024-12-17 20:26:49
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseBSD
keywords dask pandas
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Dask Expressions
================

Dask DataFrames with query optimization.

This is a rewrite of Dask DataFrame that includes query
optimization and generally improved organization.

More in our blog posts:
- [Dask Expressions overview](https://blog.dask.org/2023/08/25/dask-expr-introduction)
- [TPC-H benchmark results vs. Dask DataFrame](https://docs.coiled.io/blog/tpch.html)

Example
-------

```python
import dask_expr as dx

df = dx.datasets.timeseries()
df.head()

df.groupby("name").x.mean().compute()
```

Query Representation
--------------------

Dask-expr encodes user code in an expression tree:

```python
>>> df.x.mean().pprint()

Mean:
  Projection: columns='x'
    Timeseries: seed=1896674884
```

This expression tree will be optimized and modified before execution:

```python
>>> df.x.mean().optimize().pprint()

Div:
  Sum:
    Fused(375f9):
    | Projection: columns='x'
    |   Timeseries: dtypes={'x': <class 'float'>} seed=1896674884
  Count:
    Fused(375f9):
    | Projection: columns='x'
    |   Timeseries: dtypes={'x': <class 'float'>} seed=1896674884
```

Stability
---------

This is the default backend for dask.DataFrame since version 2024.3.0.

API Coverage
------------

Dask-Expr covers almost everything of the Dask DataFrame API. The only missing features are:

- named GroupBy Aggregations

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "dask-expr",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "Matthew Rocklin <mrocklin@gmail.com>",
    "keywords": "dask pandas",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/e2/d3/50af8a5826231a804b0286704ed7be494d685337e159bf600cb396fcfcf9/dask_expr-1.1.21.tar.gz",
    "platform": null,
    "description": "Dask Expressions\n================\n\nDask DataFrames with query optimization.\n\nThis is a rewrite of Dask DataFrame that includes query\noptimization and generally improved organization.\n\nMore in our blog posts:\n- [Dask Expressions overview](https://blog.dask.org/2023/08/25/dask-expr-introduction)\n- [TPC-H benchmark results vs. Dask DataFrame](https://docs.coiled.io/blog/tpch.html)\n\nExample\n-------\n\n```python\nimport dask_expr as dx\n\ndf = dx.datasets.timeseries()\ndf.head()\n\ndf.groupby(\"name\").x.mean().compute()\n```\n\nQuery Representation\n--------------------\n\nDask-expr encodes user code in an expression tree:\n\n```python\n>>> df.x.mean().pprint()\n\nMean:\n  Projection: columns='x'\n    Timeseries: seed=1896674884\n```\n\nThis expression tree will be optimized and modified before execution:\n\n```python\n>>> df.x.mean().optimize().pprint()\n\nDiv:\n  Sum:\n    Fused(375f9):\n    | Projection: columns='x'\n    |   Timeseries: dtypes={'x': <class 'float'>} seed=1896674884\n  Count:\n    Fused(375f9):\n    | Projection: columns='x'\n    |   Timeseries: dtypes={'x': <class 'float'>} seed=1896674884\n```\n\nStability\n---------\n\nThis is the default backend for dask.DataFrame since version 2024.3.0.\n\nAPI Coverage\n------------\n\nDask-Expr covers almost everything of the Dask DataFrame API. The only missing features are:\n\n- named GroupBy Aggregations\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "High Level Expressions for Dask",
    "version": "1.1.21",
    "project_urls": {
        "Source code": "https://github.com/dask-contrib/dask-expr/"
    },
    "split_keywords": [
        "dask",
        "pandas"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a99960c73ccb5a272ff396bc766bfa3c9caa71484424983f0334070263a16581",
                "md5": "0498df4cb9cd01ec99b626125c955b87",
                "sha256": "2c2a9a0b0e66b26cf918679988f97e947bc936544f3a106102055adb9a9edeba"
            },
            "downloads": -1,
            "filename": "dask_expr-1.1.21-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0498df4cb9cd01ec99b626125c955b87",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 244297,
            "upload_time": "2024-12-17T20:26:47",
            "upload_time_iso_8601": "2024-12-17T20:26:47.647615Z",
            "url": "https://files.pythonhosted.org/packages/a9/99/60c73ccb5a272ff396bc766bfa3c9caa71484424983f0334070263a16581/dask_expr-1.1.21-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e2d350af8a5826231a804b0286704ed7be494d685337e159bf600cb396fcfcf9",
                "md5": "d3f4677c63673b9adc16fcba64ed8867",
                "sha256": "eb45de8e6fea1ce2608a431b4e03a484592defb1796665530c91386ffac581d3"
            },
            "downloads": -1,
            "filename": "dask_expr-1.1.21.tar.gz",
            "has_sig": false,
            "md5_digest": "d3f4677c63673b9adc16fcba64ed8867",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 223929,
            "upload_time": "2024-12-17T20:26:49",
            "upload_time_iso_8601": "2024-12-17T20:26:49.519838Z",
            "url": "https://files.pythonhosted.org/packages/e2/d3/50af8a5826231a804b0286704ed7be494d685337e159bf600cb396fcfcf9/dask_expr-1.1.21.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-17 20:26:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dask-contrib",
    "github_project": "dask-expr",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "dask-expr"
}
        
Elapsed time: 0.40212s