PK +¿BUöRÑ÷2 ÷2 petlx-v0.7/ipython.html
Display a table inline within an iPython notebook. E.g.:
In [0]: from petlx.ipython import display
tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
display(tbl)
Alternatively, using the fluent style:
In [0]: from petl.interactive import etl
import petlx.ipython
tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
etl(tbl).display()
New in version 0.5.
Deprecated since version 0.6.
The petl.interactive module supports _repr_html_ as of 0.13.1 so this function is not necessary. E.g., the following should give an HTML rendering of the table inline within an iPython notebook:
In [0]: from petl.interactive import etl
tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
etl(tbl)
Display all rows from a table inline within an iPython notebook. E.g.:
In [0]: from petlx.ipython import displayall
tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
displayall(tbl)
Alternatively, using the fluent style:
In [0]: from petl.interactive import etl
import petlx.ipython
tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
etl(tbl).displayall()
New in version 0.5.
Deprecated since version 0.6.
The petl.interactive module supports _repr_html_ as of 0.13.1 so this function is not necessary. E.g., the following should give an HTML rendering of the table inline within an iPython notebook:
In [0]: from petl.interactive import etl
tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
etl(tbl)
petlx is a collection of extensions to petl, a Python package for extracting, transforming and loading tables of data.
For an overview of all functions in the package, see the Index.
This module is available from the Python Package Index. On Linux distributions you should be able to do easy_install petlx or pip install petlx. On Windows or Mac you can download manually, extract and run python setup.py install.
Note that each submodule within the petlx package has dependencies on one or more third party modules which will need to be installed separately.