smart_data_hub.property2dataframe

Functions

preserve_value_type(value)

Preserve the original type of the value.

load_rock_property(yaml_rock_property_paths)

Load rock properties from YAML files to a DataFrame.

load_site_property(site_files_path)

load site properties from YAML files to a DataFrame.

combine_rock_site_property()

Combine rock properties and site properties into a single DataFrame.

Module Contents

smart_data_hub.property2dataframe.preserve_value_type(value)[source]

Preserve the original type of the value.

Parameters:

value (float, str, None) – The input value to preserve.

Returns:

The preserved value.

Return type:

float, str, None

smart_data_hub.property2dataframe.load_rock_property(yaml_rock_property_paths)[source]

Load rock properties from YAML files to a DataFrame.

Parameters:

yaml_rock_property_paths (list) – a list of paths to YAML files containing rock properties.

Returns:

a DataFrame containing the loaded rock properties.

Return type:

pd.DataFrame

smart_data_hub.property2dataframe.load_site_property(site_files_path)[source]

load site properties from YAML files to a DataFrame.

Parameters:

site_files_path (list) – a list of paths to YAML files containing site properties.

Returns:

a DataFrame containing the loaded site properties.

Return type:

pd.DataFrame

smart_data_hub.property2dataframe.combine_rock_site_property()[source]

Combine rock properties and site properties into a single DataFrame.

Returns:

A DataFrame containing the combined properties.

Return type:

pd.DataFrame