text_util

Functions for parsing text from dataframes/text formats

Functions

parse_attribute_string(attr_string)

Parse attributes for a single element into a dict.

parse_attribute_string(attr_string)[source]

Parse attributes for a single element into a dict.

Parameters:

attr_string (str) – Formatted attributes (a=b, c=d, etc.)

Returns:

The located attributes. Can be empty.

Return type:

attributes(dict)

Raises:

ValueError

  • Very malformed input