Completely new to python (and programming). Trying to write a python script that reads a CSV file and searches for a specific string. The string represents an instance which will eventually aid in a larger script (performing additional task). With the script below I can read the CSV but I don't know how I can get the script to look for a specific string:
import csv
with open('XXXXXXX.csv', 'r') as csv_file:
csv_reader = csv.reader(csv_file)
for line in csv_reader:
print(line)
I have tried using splits, append, pandas and other options but I am not able to get it to work. Would appreciate any assistance.