I'm trying to do a type check with an element of a pandas dataframe which appears to be a string:
type(atmdf.ix[row]['bid'])
<type 'str'>
however, if I do a type check I get False:
type(atmdf.ix[row]['bid']) is 'str'
False
even with the isinstance I get the same unexpected result:
isinstance(type(atmdf.ix[row]['bid']), str)
False
where am I wrong?
P.S. the content of the dataframe is something like this:
atmdf.ix[row]['bid']
'28.5'
thank you!
type(atmdf.ix[row]['bid']) is str