'Looking for a value within a list object in a dataframe
I am looking for a value within a list object in a DataFrame:
This is my code:
for tags in Questions["Tags"]:
if "deep-learning" in tags:
Questions["DL-flag"] = 1
The column that I am looking into looks like this: [python, keras, tensorflow, cnn, probability]
According to my code looking for deep-learning in that example should result in false, but that is not what is happening, since all the column is returning true for each row
Could you help me out?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
