• Stars
    star
    1,227
  • Rank 37,236 (Top 0.8 %)
  • Language
    Python
  • License
    MIT License
  • Created over 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📊📈 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)

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

More Repositories

1

django-data-wizard

🧙⚙️ Import structured data (e.g. Excel, CSV, XML, JSON) into one or more Django models via an interactive web-based wizard
Python
329
star
2

wq

📱🌐📋 wq: a modular framework supporting web / native apps for mobile surveys and geospatial data collection. Powered by Django REST Framework, Redux, React, and Material UI.
JavaScript
254
star
3

wq.app

💻📱 wq's app library: a JavaScript framework powering offline-first web & native apps for geospatial data collection, mobile surveys, and citizen science. Powered by Redux, React, Material UI and Maplibre GL.
JavaScript
116
star
4

wq.db

☁🌐 wq's db library, extending Django REST framework to support apps for geospatial field data collection, citizen science, and crowdsourcing.
Python
113
star
5

itertable

⇔ IterTable is a Pythonic API for iterating through tabular data formats, including CSV, XLSX, XML, and JSON.
Python
51
star
6

django-natural-keys

Enhanced support for natural keys in Django and Django REST Framework.
Python
37
star
7

html-json-forms

Python implementation of the (inactive) HTML JSON Forms spec.
Python
32
star
8

wq-django-template

Django + NPM (Create React App) template for building REST-ful web & hybrid apps with the wq framework
Python
27
star
9

xlsform-converter

💡📋 xlsconv: Command-line tool to convert questionnaires from Open Data Kit's XLSForm format into Django models and HTML (for use with https://wq.io/).
Python
21
star
10

wq.create

wq.create: Project scaffolding tools for creating a new crowdsourcing or citizen science application with the wq framework.
JavaScript
7
star
11

wq.build

The wq command line interface (CLI).
Python
6
star
12

.github

wq GitHub profile
1
star
13

wq.markdown

Markdown and syntax highlighting for @wq/app
JavaScript
1
star
14

wq-vite-template

Project template for vite + rollup + react projects leveraging wq.js.
JavaScript
1
star
15

wq-base-image

Base container image for wq-powered projects.
Dockerfile
1
star
16

wq-docker-template

Project template for containerized wq applications (e.g. Azure App Service or AWS App Runner).
Python
1
star