Python Lambda: Typeerror: Argument Of Type 'float' Is Not Iterable
I was trying to extract information from df['matrix'] into four new columns. The df['matrix'] look like this: id matrix 0 {'status': 'ZERO_RESULTS'} 1 {'distance':
Solution 1:
Since you are checking if "status" is in x and it looks like sometimes x is not a string. You can cast your x to string with str(x).
Hope it will solve your problem.
Post a Comment for "Python Lambda: Typeerror: Argument Of Type 'float' Is Not Iterable"