I have a database that was created and is used by an architecture firm. All measurements are stored in a format like this: 15-3/4″ and 12′ 6-3/4″.
Is there a way to convert these types of measurements into floating point in Python? Or is there a library out there that provides this functionality?
Likewise, how would you convert from a floating point to the above format?
Depending on how regular the patterns are, you can use str.partition to do the parsing: