Created
December 29, 2015 06:54
-
-
Save robsmith1776/2b5c645bd3a1c7a6f490 to your computer and use it in GitHub Desktop.
Get Email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tqdm import tqdm | |
from time import sleep | |
import pandas as pd | |
mycsv = "C:\\Users\\rob\\Downloads\\contest-standings-17968412\\contest-standings-17968412.csv" | |
mycsv2 = "C:\\Users\\rob\\Downloads\\contest-standings-17968412\\testEmail.csv" | |
# items = range(1,100) | |
# | |
# | |
# for item in tqdm(items): | |
# print(item) | |
# | |
# for i in tqdm(range(9)): | |
# sleep(1) | |
df = pd.read_csv(mycsv) | |
email_column = "" | |
headers = list(df.columns.values) | |
emails = [] | |
debug = False | |
# df1 = df[['EntryName']] | |
# print(df1) | |
for index, row in df.iterrows(): | |
for column in row: | |
if 'Hightower' in str(column): | |
if debug: | |
print("Hightower sign Found!") | |
emails.append(str(column)) | |
# print(column, index, row) | |
# print(index, row) | |
print(len(emails)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment