• Stars
    star
    687
  • Rank 65,799 (Top 2 %)
  • Language
    Python
  • License
    Other
  • Created about 9 years ago
  • Updated 8 months ago

Reviews

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

Repository Details

Drag’n’drop Pivot Tables and Charts for Jupyter/IPython Notebook, care of PivotTable.js

pivottablejs: the Python module

Drag’n’drop Pivot Tables and Charts for Jupyter/IPython Notebook, care of PivotTable.js

Installation

pip install pivottablejs or conda install pivottablejs

Note in the past, the conda command above installed pivottablejs-airgap instead of this library; apologies for any confusion this change may cause.

Usage

import pandas as pd
df = pd.read_csv("some_input.csv")

from pivottablejs import pivot_ui

pivot_ui(df)

Advanced Usage

Include any JSON-serializable option to PivotTable.js's pivotUI() function as a keyword argument.

pivot_ui(df, rows=['row_name'], cols=['col_name'])

Independently control the output file path and the URL used to access it from Jupyter, in case the default relative-URL behaviour is incompatible with Jupyter's settings.

pivot_ui(df, outfile_path="/x/y.html", url="http://localhost/a/b/x.html")

More Repositories

1

pivottable

Open-source Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.
CoffeeScript
4,353
star
2

genealogy

Visualizing family trees
HTML
84
star
3

pyconca

My presentation for PyCon Canada 2015
69
star
4

scipy2021

Data Visualization as the First and Last Mile of Data Science: Plotly Express and Dash
HTML
41
star
5

pydata_global_2021

Jupyter Notebook
26
star
6

dash_callback_chain

Now part of Dash!
Python
21
star
7

seriation

R
17
star
8

semiology_of_graphics

Jupyter Notebook
16
star
9

plotly_img_test

Jupyter Notebook
13
star
10

direction_angrignon

A different kind of subway map
HTML
13
star
11

arduino

My Arduino Sketchbook Directory
C
13
star
12

appleTM

How Apple Names Things
HTML
11
star
13

hackMTL

Inbox Social Network Visualization
Python
7
star
14

context

An XSLT timeline viewer
XSLT
6
star
15

election2013

Dashboard for the Projet Montréal's 2013 election night venue
CoffeeScript
4
star
16

mtlelection2013bysection

Mapping the Montreal 2013 election ballot-box by ballot-box using Leaflet.js
CoffeeScript
4
star
17

silvia

Web-based UI for remote-controlling my Rancilio Silvia espresso machine
JavaScript
2
star
18

kdetool

Kernel Density Estimation and Analysis Tool
Java
2
star
19

mtlelection2017bysection

Map of 2017 Montreal municipal election results
CSS
2
star
20

mtlelection2013bydistrict

Mapping the Montreal 2013 election district by district with a ternary plot using D3.js
HTML
2
star
21

PHPTab

a simple debt-tracking tool by Nicolas Kruchten
CSS
2
star
22

pyviz_diagram

Jupyter Notebook
1
star
23

straight_circles

HTML
1
star
24

volunteerdb

PHP
1
star
25

housenumbers

House Numbers on the Island of Montreal
HTML
1
star
26

mtlelection2021bysection

Jupyter Notebook
1
star
27

fig2pen

Python
1
star
28

yarnbug

Shell
1
star
29

car2go_map

Python
1
star
30

ngram_years

Heatmap of Google Ngram years mentioning years
Jupyter Notebook
1
star
31

processing

My Processing sketchbook
Java
1
star
32

mtl311

Montreal 311 Service Requests, an Analysis
Jupyter Notebook
1
star
33

galapagos

Galapagos: a Distributed Parallel Evolutionary Algorithm Development Platform
Java
1
star
34

OpenMyEWB

an online community system by Nicolas Kruchten, Francis Kung and others
Java
1
star