project_to_pandas#

project_to_pandas(project, join=False, delim='.')[source]#

Convert the Network and Phase data to a Pandas DataFrame(s)

Parameters:
  • project (list) – An OpenPNM project object

  • join (bool) – If False (default), two DataFrames are returned with pore data in one, and throat data in the other. If True the pore and throat data are combined into a single DataFrame. This can be problematic as it will put NaNs into all the pore columns which are shorter than the throat columns.

Returns:

  • Pandas DataFrame object(s) containing property and label data in

  • each column. If join was False (default) the two DataFrames are

  • returned in a dict, otherwise a single DataFrame with pore and

  • throat data in the same file, despite the column length being

  • different.