I have dataframe df like this :
date item
2019-03-29 [book,pencil]
...
I want to get every item in list using loop. this is what I've tried:
for i in range(len(df)):
for x in df['attributeName'][i]:
print(x)
But i got every single character. The desired output is:
book
pencil
How do I solve this problem?
df.iterrows()df.iterrows(). There's bad advice flying from every direction.