DataFrames (pandas)

The package pandas is required. Instructions for installation can be found at http://pandas.pydata.org/pandas-docs/dev/install.html or try apt-get install python-pandas.

petlx.dataframe.todataframe(table, index=None, exclude=None, columns=None, coerce_float=False, nrows=None)[source]

Convenience function to load data from the given table into a pandas DataFrame.

New in version 0.14.

petlx.dataframe.fromdataframe(df, include_index=False)[source]

Extract a table from a pandas DataFrame.

New in version 0.14.