phydrus.model.Model.get_empty_material_df¶
-
Model.
get_empty_material_df
(n=1)[source]¶ Get an empty DataFrame with the soil parameters as columns.
- Parameters
n (int, optional) – Number of materials to add.
- Returns
Pandas DataFrame with the soil parameters as columns.
- Return type
Examples
>>> m = ml.get_empty_material_df(n=2) >>> m.loc[1:2] = [[0.08, 0.3421, 0.03, 5, 1, -0.5], >>> [0.08, 0.3421, 0.03, 5, 0.1, -0.5]] >>> ml.add_material(m)