I'm a beginner in Python and I'm having a hard time.
I have a separate CSV database for ";" with 6 columns. I'd like to count how many records they have, whose sex is "Female." Can you tell me how to do or where should I start my studies?
Below is the code I have so far.
import csv
with open('teste.csv', 'r') as arquivo:
delimitador = csv.Sniffer().sniff(arquivo.read(1024), delimiters=";")
arquivo.seek(0)
leitor = csv.reader(arquivo, delimitador)
dados = list(leitor)
for x in dados:
print(x)
Converted to list, but I could not think of a way to check for "Female" on the line.
Any beginner tip will also be welcome.