Skip to main content

Serves up pandas dataframes via the Django REST Framework for client-side(i.e. d3.js) visualizations

Project description

Django REST Pandas

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 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.

Latest PyPI Release Release Notes License GitHub Stars GitHub Forks GitHub Issues

Tests Python Support Django Support

Documentation

DRP is configured by defining one or more API views 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

  2. API Documentation

  3. Data Visualization

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rest_pandas-2.0.0a0-py3-none-any.whl (378.5 kB view details)

Uploaded Python 3

File details

Details for the file rest_pandas-2.0.0a0-py3-none-any.whl.

File metadata

  • Download URL: rest_pandas-2.0.0a0-py3-none-any.whl
  • Upload date:
  • Size: 378.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for rest_pandas-2.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb88955f878c79f94d923a171f88b31d55f6e77f2f8641a33d6258b1bd1cc6f1
MD5 fe581a5b1b6c4514abbb6d3561218ae1
BLAKE2b-256 980d798c291379a27d6eefb9c6b75cc44d066c26ad1635685ab9b3adbcffeeef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page