0

How to search for "ab-123" value in a row?

I used the below code, please note that the below code is just a part of python programming which is not working for me. if row['Team'] == 'ab-123':

5th Aug 2020, 6:36 PM
Jin Varghese
Jin Varghese - avatar
4 Réponses
+ 4
Randomocity is correct. More of the code is needed to understand the problem. Why would someone downvote that request
5th Aug 2020, 7:20 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
I cant help if I don't have the rest of the code
5th Aug 2020, 6:45 PM
Randomocity
Randomocity - avatar
+ 1
Hi all, this is solved. if all([row['Team'] == 'ab-123']): thank you all for the support.
14th Aug 2020, 5:42 PM
Jin Varghese
Jin Varghese - avatar
0
This code in your meaning ia correct but i think you have some other problem. I think since you make taging csv and python 3, perhaps you read lines from csv file and then check each column. So i think you forgot some join('').split() and each array element in row has delimiter, or ; in the end of the value so you have 'ab-124;' or 'ab-123;' instead the value you want
5th Aug 2020, 8:40 PM
george
george - avatar