I have already looked at other related stackoverflow answers to similar questions (Convert fraction to float?), ASCII encoding, etc, but have been unable to find something that solves the specific string issue I am encountering.
I have a string that contains this value '½', as well as other strings with mixed fractions such as '1 ½'. Passing these values through the fraction library or trying to remove the formatting that is being used results in errors such as
ValueError: Invalid literal for Fraction: '½'
Trying to use str.split("/") results in no change, passing
'½'.str.split("/")
returns '½'.
Any tips on how to deal with these strings would be appreciated!