nuctransportdb.data_tagging
Functions
|
Check if 'target' exists in 'strings'. |
|
Get masks for multiple tag names in a specific tag type. |
|
Filter the DataFrame based on multiple tag criteria. |
Module Contents
- nuctransportdb.data_tagging.string_in_strings(target, strings) bool[source]
Check if ‘target’ exists in ‘strings’.
- nuctransportdb.data_tagging.get_tagged_data_mask(property_df, tag_type, tag_names)[source]
Get masks for multiple tag names in a specific tag type.
- nuctransportdb.data_tagging.filter_tagged_data(property_df, tag_dict)[source]
Filter the DataFrame based on multiple tag criteria.
- Parameters:
property_df (pd.DataFrame) – Input DataFrame.
tag_dict (dict) – Dictionary where keys are tag types (“agency”, “location”, “simplified_lithology”) and values are lists of tag names.
- Returns:
Filtered DataFrame containing only rows that match all specified tag criteria.
- Return type:
pd.DataFrame