# django-rest-pandas **Repository Path**: zhiwehu/django-rest-pandas ## Basic Information - **Project Name**: django-rest-pandas - **Description**: 📊📈 Serves up Pandas dataframes via the Django REST Framework for use in client-side (i.e. d3.js) visualizations and offline analysis (e.g. Excel) - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-18 - **Last Updated**: 2022-10-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
#### [Django REST Framework] + [pandas] = A Model-driven Visualization API **Django REST Pandas** (DRP) provides a simple way to generate and serve [pandas] DataFrames via the [Django REST Framework]. The resulting API can serve up CSV (and a number of [other formats][renderers] for consumption by a client-side visualization tool like [d3.js]. The design philosophy of DRP enforces a strict separation between data and presentation. This keeps the implementation simple, but also has the nice side effect of making it trivial to provide the source data for your visualizations. This capability can often be leveraged by sending users to the same URL that your visualization code uses internally to load the data. While DRP is primarily a data API, it also provides a default collection of interactive visualizations through the [@wq/chart] library, and a [@wq/pandas] loader to facilitate custom JavaScript charts that work well with CSV output served by DRP. These can be used to create interactive time series, scatter, and box plot charts - as well as any of the infinite other charting possibilities d3.js provides. [](https://pypi.python.org/pypi/rest-pandas) [](https://github.com/wq/django-rest-pandas/releases) [](https://github.com/wq/django-rest-pandas/blob/master/LICENSE) [](https://github.com/wq/django-rest-pandas/stargazers) [](https://github.com/wq/django-rest-pandas/network) [](https://github.com/wq/django-rest-pandas/issues) [](https://github.com/wq/django-rest-pandas/actions/workflows/test.yml) [](https://pypi.org/project/rest-pandas) [](https://pypi.org/project/rest-pandas) ### [Documentation] DRP is configured by defining one or more [API views][api] and mapping them to URLs. The underlying implementation is a set of [serializers] that take the normal serializer result and put it into a dataframe. Then, the included [renderers] generate the output using the built in pandas functionality. 1. **Getting Started** * [Installation][installation] * [Related Work][related-work] 2. **API Documentation** * [Configuration][config] * [API Views][api] * [Serializers (DataFrame transformation)][serializers] * [Renderers (Output Formats)][renderers] 3. **Data Visualization** * [@wq/pandas] * [@wq/chart] * [@wq/analyst] [Django REST Framework]: http://django-rest-framework.org [pandas]: http://pandas.pydata.org [d3.js]: http://d3js.org [Documentation]: https://django-rest-pandas.wq.io/ [installation]: https://django-rest-pandas.wq.io/overview/setup [related-work]: https://django-rest-pandas.wq.io/overview/related-work [config]: https://django-rest-pandas.wq.io/config [api]: https://django-rest-pandas.wq.io/api/ [serializers]: https://django-rest-pandas.wq.io/serializers/ [renderers]: https://django-rest-pandas.wq.io/renderers/ [@wq/pandas]: https://django-rest-pandas.wq.io/@wq/pandas [@wq/chart]: https://django-rest-pandas.wq.io/@wq/chart [@wq/analyst]: https://django-rest-pandas.wq.io/@wq/analyst