While doing data transformation, I am getting "TypeError: argument of type 'int' is not iterable", I am using python 3.5
This is the code snippet,
for idx, val in enumerate(aircrashdf.Destination):
if ',' in val:
destination = val.split(",")
original = destination[0].strip()
aircrashdf.iloc[idx,10] = original
This is the output
Traceback (most recent call last):
File "/home/drogon/PycharmProjects/aircrashes.py", line 151, in <module>
if ',' in val:
TypeError: argument of type 'int' is not iterable
What could be the problem?