to_pandas#

to_pandas(network, phases=[], filename='', join=False, delim=' | ')[source]#

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

Parameters
  • network (GenericNetwork) – The network containing the data to be stored

  • phases (list[GenericPhase]s) – The data on each supplied phase will be added to DataFrame

  • 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 containing property and label data in each

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

  • returned in a named tuple, otherwise a single DataFrame with pore and

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

  • different.