In Python 2.7, see the following error, when trying to cast type to ensure it matches the output schema.
UnicodeEncodeError: 'ascii' codec can't encode character in position 0: ordinal not in range(128) Tried to find why and reproduced the error in Jupiter. By simply typing in.
str(u'\u2013')
What is the way to cast type to string that can handle this type of error? Thanks!