Skip to content

bedrock_ge.gi.ags.read

def ags_to_dfs(ags_data: str) -> Dict[str, pd.DataFrame]

Converts AGS 3 or AGS 4 data to a dictionary of pandas DataFrames.

Arguments:

  • ags_data str - The AGS data as a string.

Raises:

  • ValueError - If the data does not match AGS 3 or AGS 4 format.

Returns:

Dict[str, pd.DataFrame]]: A dictionary where keys represent AGS group names with corresponding DataFrames for the corresponding group data.

def ags3_to_dfs(ags3_data: str) -> Dict[str, pd.DataFrame]

Converts AGS 3 data to a dictionary of pandas DataFrames.

Arguments:

  • ags3_data str - The AGS 3 data as a string.

Returns:

Dict[str, pd.DataFrame]: A dictionary of pandas DataFrames, where each key represents a group name from AGS 3 data, and the corresponding value is a pandas DataFrame containing the data for that group.

def ags4_to_dfs(ags4_data: str) -> Dict[str, pd.DataFrame]

Converts AGS 4 data to a dictionary of pandas DataFrames.

Arguments:

  • ags4_data str - The AGS 4 data as a string.

Returns:

Dict[str, pd.DataFrame]: A dictionary of pandas DataFrames, where each key represents a group name from AGS 4 data, and the corresponding value is a pandas DataFrame containing the data for that group.

def coerce_string(string: str) -> Union[None, bool, float, str]