Skip to main content

a pandas dataframe interface for traitlets and pythreejs

Project description

Project: https://github.com/chrisjsewell/pandas3js

https://travis-ci.org/chrisjsewell/pandas3js.svg?branch=master

An extension for traitlets and pythreejs that:

  1. Provides a 2-way pandas dataframe interface for trait objects.

  2. Provides simple, high level (renderer agnostic) geometries, with default json specified mappings to pythreejs primitives.

  3. Creates bespoke 3D Graphics GUIs in the Jupyter Notebook with only a few lines of code.

From: pandas3js_example.ipynb

https://github.com/chrisjsewell/pandas3js/raw/master/pandas3js_example.gif

For more information, all functions contain docstrings with tested examples.

Installation

$ pip install pandas3js
$ jupyter nbextension enable --py --sys-prefix pythreejs

pandas3js is integration tested against python versions 2.7, 3.4, 3.5 and 3.6

Technical Details

Employing a meta Model/View design; Unique geometry objects are stored in a GeometryCollection model object, which can be viewed as (and modified by) a pandas.DataFrame, containing objects (by row) and traits/object_type (by column). The GeometryCollection (and its objects) can then be directionally synced to a pythreejs.Scene (and pythreejs.3DObjects) view, via a json mapping specification.

Project details


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

pandas3js-0.1.6-py2.py3-none-any.whl (34.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pandas3js-0.1.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pandas3js-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c137eea4a6d06c038b29e4799a664245f6c8e5a80ec1ab0403b96dcc9021f9c4
MD5 651f0d3d1d88e6bc6a08ea5400559e0e
BLAKE2b-256 6c5218d252a930a0853c9cc73a3e9bf3ac762247af55952fb6a6766231df7632

See more details on using hashes here.

Supported by

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