omfpandas.blockmodels.convert_blockmodel.df_to_blockmodel
- omfpandas.blockmodels.convert_blockmodel.df_to_blockmodel(df, blockmodel_name)[source]
Get the appropriate function to convert a DataFrame to a BlockModel.
- Parameters:
df (pd.DataFrame) – The DataFrame to convert to a RegularBlockModel.
blockmodel_name (str) – The name of the RegularBlockModel.
- Return type:
Union
[RegularBlockModel
,TensorGridBlockModel
]- Returns:
The RegularBlockModel|TensorGridBlockModel representing the DataFrame.