Pandas

class openpnm.io.Pandas[source]

Combines all data arrays into a Pandas DataFrame object

The structure of a DataFrame is a very close match to OpenPNMs data storage. Each key becomes a column header in the Dataframe, and each pore or throat entry becomes a row.

Limitations of the DataFrame are the inability to have multidimensional data in a single column. The methods on a DataFrame are also oriented towards time-series data.

Nonetheless, Pandas offers many useful features such as performing statistical analysis on property. DataFrames also offer many options for exporting to other file formats, so if a format is not yet supported by OpenPNM, this could be an solution.

Methods

export_data([network, phases, join, delim])

Convert the Network (and optionally Phase) data to Pandas DataFrames.