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
objectjoin (bool) – If
False
(default), two DataFrames are returned with pore data in one, and throat data in the other. IfTrue
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 ineach column. If
join
wasFalse
(default) the two DataFrames arereturned in a dict, otherwise a single DataFrame with pore and
throat data in the same file, despite the column length being
different.