data-formulator


Namedata-formulator JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
SummaryData Formulator is research protoype data visualization tool powered by AI.
upload_time2024-10-18 22:53:25
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
keywords data visualization llm ai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1>
    <img src="./public/favicon.ico" alt="Data Formulator icon" width="28"> <b>Data Formulator: Create Rich Visualizations with AI</b>
</h1>

<div>
    
[![arxiv](https://img.shields.io/badge/Paper-arXiv:2408.16119-b31b1b.svg)](https://arxiv.org/abs/2408.16119)&ensp;
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)&ensp;
[![YouTube](https://img.shields.io/badge/YouTube-white?logo=youtube&logoColor=%23FF0000)](https://youtu.be/3ndlwt0Wi3c)&ensp;
[![build](https://github.com/microsoft/data-formulator/actions/workflows/python-build.yml/badge.svg)](https://github.com/microsoft/data-formulator/actions/workflows/python-build.yml)

</div>

Transform data and create rich visualizations iteratively with AI 🪄. Try Data Formulator now in GitHub Codespaces!

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/data-formulator?quickstart=1)

<kbd>
  <a target="_blank" rel="noopener noreferrer" href="https://codespaces.new/microsoft/data-formulator?quickstart=1" title="open Data Formulator in GitHub Codespaces"><img src="public/data-formulator-screenshot.png"></a>
</kbd>


## News 🔥🔥🔥

- [10-11-2024] Data Formulator python package released! 
  - You can now install Data Formulator using Python and run it locally, easily. [[check it out]](#get-started).
  - Our Codespace configuration is also updated for fast start up ⚡️. [[try it now!]](https://codespaces.new/microsoft/data-formulator?quickstart=1)
  - New exprimental feature: load an image or a messy text, and ask AI parsing and cleaning it for you(!). [[demo]](https://github.com/microsoft/data-formulator/pull/31#issuecomment-2403652717)
  
- [10-01-2024] Initial release of Data Formulator, check out our [[blog]](https://www.microsoft.com/en-us/research/blog/data-formulator-exploring-how-ai-can-help-analysts-create-rich-data-visualizations/) and [[video]](https://youtu.be/3ndlwt0Wi3c)!



## Overview

**Data Formulator** is an application from Microsoft Research that uses large language models to transform data, expediting the practice of data visualization.

Data Formulator is an AI-powered tool for analysts to iteratively create rich visualizations. Unlike most chat-based AI tools where users need to describe everything in natural language, Data Formulator combines *user interface interactions (UI)* and *natural language (NL) inputs* for easier interaction. This blended approach makes it easier for users to describe their chart designs while delegating data transformation to AI. 

## Get Started

Play with Data Formulator with one of the following options:

- **Option 1: Install via Python PIP**
  
  Use Python PIP for an easy setup experience, running locally (recommend: install it in a virtual environment).
  
  ```bash
  # install data_formulator
  pip install data_formulator

  # start data_formulator
  data_formulator 
  
  # alternatively, you can run data formualtor with this command
  python -m data_formulator
  ```

  Data Formulator will be automatically opened in the browser at [http://localhost:5000](http://localhost:5000).

- **Option 2: Codespaces (5 minutes)**
  
  You can also run Data Formualtor in codespace, we have everything pre-configured. For more details, see [CODESPACES.md](CODESPACES.md).
  
  [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/data-formulator?quickstart=1)

- **Option 3: Working in the developer mode**
  
  You can build Data Formulator locally if you prefer full control over your development environment and the ability to customize the setup to your specific needs. For detailed instructions, refer to [DEVELOPMENT.md](DEVELOPMENT.md).


## Using Data Formulator

Once you’ve completed the setup using either option, follow these steps to start using Data Formulator:

### The basics of data visualization
* Provide OpenAI keys and select a model (GPT-4o suggested) and choose a dataset.
* Choose a chart type, and then drag-and-drop data fields to chart properties (x, y, color, ...) to specify visual encodings.

https://github.com/user-attachments/assets/0fbea012-1d2d-46c3-a923-b1fc5eb5e5b8


### Create visualization beyond the initial dataset (powered by 🤖)
* You can type names of **fields that do not exist in current data** in the encoding shelf:
    - this tells Data Formulator that you want to create visualizions that require computation or transformation from existing data,
    - you can optionally provide a natural language prompt to explain your intent to clarify your intent (not necessary when field names are self-explanatory).
* Click the **Formulate** button.
    - Data Formulator will transform data and instantiate the visualization based on the encoding and prompt.
* Inspect the data, chart and code.
* To create a new chart based on existing ones, follow up in natural language:
    - provide a follow up prompt (e.g., *``show only top 5!''*),
    - you may also update visual encodings for the new chart.

https://github.com/user-attachments/assets/160c69d2-f42d-435c-9ff3-b1229b5bddba

https://github.com/user-attachments/assets/c93b3e84-8ca8-49ae-80ea-f91ceef34acb

Repeat this process as needed to explore and understand your data. Your explorations are trackable in the **Data Threads** panel. 

## Developers' Guide

Follow the [developers' instructions](DEVELOPMENT.md) to build your new data analysis tools on top of Data Formulator.

## Research Papers
* [Data Formulator 2: Iteratively Creating Rich Visualizations with AI](https://arxiv.org/abs/2408.16119)

```
@article{wang2024dataformulator2iteratively,
      title={Data Formulator 2: Iteratively Creating Rich Visualizations with AI}, 
      author={Chenglong Wang and Bongshin Lee and Steven Drucker and Dan Marshall and Jianfeng Gao},
      year={2024},
      booktitle={ArXiv preprint arXiv:2408.16119},
}
```

* [Data Formulator: AI-powered Concept-driven Visualization Authoring](https://arxiv.org/abs/2309.10094)

```
@article{wang2023data,
  title={Data Formulator: AI-powered Concept-driven Visualization Authoring},
  author={Wang, Chenglong and Thompson, John and Lee, Bongshin},
  journal={IEEE Transactions on Visualization and Computer Graphics},
  year={2023},
  publisher={IEEE}
}
```


## Contributing

This project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visit
https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft 
trademarks or logos is subject to and must follow 
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "data-formulator",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "data visualization, LLM, AI",
    "author": null,
    "author_email": "Chenglong Wang <chenglong.wang@microsoft.com>, Dan Marshall <danmar@microsoft.com>",
    "download_url": "https://files.pythonhosted.org/packages/a6/c8/745f4dc1e46f79bc0ca8d7049a3d8ce1fe8d5ecb8676d78c722af26fc610/data_formulator-0.1.3.tar.gz",
    "platform": null,
    "description": "<h1>\n    <img src=\"./public/favicon.ico\" alt=\"Data Formulator icon\" width=\"28\"> <b>Data Formulator: Create Rich Visualizations with AI</b>\n</h1>\n\n<div>\n    \n[![arxiv](https://img.shields.io/badge/Paper-arXiv:2408.16119-b31b1b.svg)](https://arxiv.org/abs/2408.16119)&ensp;\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)&ensp;\n[![YouTube](https://img.shields.io/badge/YouTube-white?logo=youtube&logoColor=%23FF0000)](https://youtu.be/3ndlwt0Wi3c)&ensp;\n[![build](https://github.com/microsoft/data-formulator/actions/workflows/python-build.yml/badge.svg)](https://github.com/microsoft/data-formulator/actions/workflows/python-build.yml)\n\n</div>\n\nTransform data and create rich visualizations iteratively with AI \ud83e\ude84. Try Data Formulator now in GitHub Codespaces!\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/data-formulator?quickstart=1)\n\n<kbd>\n  <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://codespaces.new/microsoft/data-formulator?quickstart=1\" title=\"open Data Formulator in GitHub Codespaces\"><img src=\"public/data-formulator-screenshot.png\"></a>\n</kbd>\n\n\n## News \ud83d\udd25\ud83d\udd25\ud83d\udd25\n\n- [10-11-2024] Data Formulator python package released! \n  - You can now install Data Formulator using Python and run it locally, easily. [[check it out]](#get-started).\n  - Our Codespace configuration is also updated for fast start up \u26a1\ufe0f. [[try it now!]](https://codespaces.new/microsoft/data-formulator?quickstart=1)\n  - New exprimental feature: load an image or a messy text, and ask AI parsing and cleaning it for you(!). [[demo]](https://github.com/microsoft/data-formulator/pull/31#issuecomment-2403652717)\n  \n- [10-01-2024] Initial release of Data Formulator, check out our [[blog]](https://www.microsoft.com/en-us/research/blog/data-formulator-exploring-how-ai-can-help-analysts-create-rich-data-visualizations/) and [[video]](https://youtu.be/3ndlwt0Wi3c)!\n\n\n\n## Overview\n\n**Data Formulator** is an application from Microsoft Research that uses large language models to transform data, expediting the practice of data visualization.\n\nData Formulator is an AI-powered tool for analysts to iteratively create rich visualizations. Unlike most chat-based AI tools where users need to describe everything in natural language, Data Formulator combines *user interface interactions (UI)* and *natural language (NL) inputs* for easier interaction. This blended approach makes it easier for users to describe their chart designs while delegating data transformation to AI. \n\n## Get Started\n\nPlay with Data Formulator with one of the following options:\n\n- **Option 1: Install via Python PIP**\n  \n  Use Python PIP for an easy setup experience, running locally (recommend: install it in a virtual environment).\n  \n  ```bash\n  # install data_formulator\n  pip install data_formulator\n\n  # start data_formulator\n  data_formulator \n  \n  # alternatively, you can run data formualtor with this command\n  python -m data_formulator\n  ```\n\n  Data Formulator will be automatically opened in the browser at [http://localhost:5000](http://localhost:5000).\n\n- **Option 2: Codespaces (5 minutes)**\n  \n  You can also run Data Formualtor in codespace, we have everything pre-configured. For more details, see [CODESPACES.md](CODESPACES.md).\n  \n  [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/data-formulator?quickstart=1)\n\n- **Option 3: Working in the developer mode**\n  \n  You can build Data Formulator locally if you prefer full control over your development environment and the ability to customize the setup to your specific needs. For detailed instructions, refer to [DEVELOPMENT.md](DEVELOPMENT.md).\n\n\n## Using Data Formulator\n\nOnce you\u2019ve completed the setup using either option, follow these steps to start using Data Formulator:\n\n### The basics of data visualization\n* Provide OpenAI keys and select a model (GPT-4o suggested) and choose a dataset.\n* Choose a chart type, and then drag-and-drop data fields to chart properties (x, y, color, ...) to specify visual encodings.\n\nhttps://github.com/user-attachments/assets/0fbea012-1d2d-46c3-a923-b1fc5eb5e5b8\n\n\n### Create visualization beyond the initial dataset (powered by \ud83e\udd16)\n* You can type names of **fields that do not exist in current data** in the encoding shelf:\n    - this tells Data Formulator that you want to create visualizions that require computation or transformation from existing data,\n    - you can optionally provide a natural language prompt to explain your intent to clarify your intent (not necessary when field names are self-explanatory).\n* Click the **Formulate** button.\n    - Data Formulator will transform data and instantiate the visualization based on the encoding and prompt.\n* Inspect the data, chart and code.\n* To create a new chart based on existing ones, follow up in natural language:\n    - provide a follow up prompt (e.g., *``show only top 5!''*),\n    - you may also update visual encodings for the new chart.\n\nhttps://github.com/user-attachments/assets/160c69d2-f42d-435c-9ff3-b1229b5bddba\n\nhttps://github.com/user-attachments/assets/c93b3e84-8ca8-49ae-80ea-f91ceef34acb\n\nRepeat this process as needed to explore and understand your data. Your explorations are trackable in the **Data Threads** panel. \n\n## Developers' Guide\n\nFollow the [developers' instructions](DEVELOPMENT.md) to build your new data analysis tools on top of Data Formulator.\n\n## Research Papers\n* [Data Formulator 2: Iteratively Creating Rich Visualizations with AI](https://arxiv.org/abs/2408.16119)\n\n```\n@article{wang2024dataformulator2iteratively,\n      title={Data Formulator 2: Iteratively Creating Rich Visualizations with AI}, \n      author={Chenglong Wang and Bongshin Lee and Steven Drucker and Dan Marshall and Jianfeng Gao},\n      year={2024},\n      booktitle={ArXiv preprint arXiv:2408.16119},\n}\n```\n\n* [Data Formulator: AI-powered Concept-driven Visualization Authoring](https://arxiv.org/abs/2309.10094)\n\n```\n@article{wang2023data,\n  title={Data Formulator: AI-powered Concept-driven Visualization Authoring},\n  author={Wang, Chenglong and Thompson, John and Lee, Bongshin},\n  journal={IEEE Transactions on Visualization and Computer Graphics},\n  year={2023},\n  publisher={IEEE}\n}\n```\n\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to\nagree to a Contributor License Agreement (CLA) declaring that you have the right to,\nand actually do, grant us the rights to use your contribution. For details, visit\nhttps://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need\nto provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the\ninstructions provided by the bot. You will only need to do this once across all repositories using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)\nor contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n## Trademarks\n\nThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft \ntrademarks or logos is subject to and must follow \n[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).\nUse of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.\nAny use of third-party trademarks or logos are subject to those third-party's policies.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) Microsoft Corporation.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE ",
    "summary": "Data Formulator is research protoype data visualization tool powered by AI.",
    "version": "0.1.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/microsoft/data-formulator/issues",
        "Homepage": "https://github.com/microsoft/data-formulator",
        "Repository": "https://github.com/microsoft/data-formulator.git"
    },
    "split_keywords": [
        "data visualization",
        " llm",
        " ai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "869efa576943356538edebafce4a2918f602c960a585977aba11406eec7e2ede",
                "md5": "5f6cb6995f14e37d0846669f0b9063ab",
                "sha256": "30c7a1b7cdfe70d48c8cc57c85f903c24171a8d7971527bfeba52b8f3651b5ef"
            },
            "downloads": -1,
            "filename": "data_formulator-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5f6cb6995f14e37d0846669f0b9063ab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6508691,
            "upload_time": "2024-10-18T22:53:23",
            "upload_time_iso_8601": "2024-10-18T22:53:23.614843Z",
            "url": "https://files.pythonhosted.org/packages/86/9e/fa576943356538edebafce4a2918f602c960a585977aba11406eec7e2ede/data_formulator-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a6c8745f4dc1e46f79bc0ca8d7049a3d8ce1fe8d5ecb8676d78c722af26fc610",
                "md5": "05141abb02bcba31a10448b4ce9ec378",
                "sha256": "8dd5a0d3359b9e5bcab27fc52bf1e88f7e90d5893aab87db50b204998c52d225"
            },
            "downloads": -1,
            "filename": "data_formulator-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "05141abb02bcba31a10448b4ce9ec378",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6479817,
            "upload_time": "2024-10-18T22:53:25",
            "upload_time_iso_8601": "2024-10-18T22:53:25.506598Z",
            "url": "https://files.pythonhosted.org/packages/a6/c8/745f4dc1e46f79bc0ca8d7049a3d8ce1fe8d5ecb8676d78c722af26fc610/data_formulator-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-18 22:53:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "microsoft",
    "github_project": "data-formulator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "data-formulator"
}
        
Elapsed time: 1.65784s