Skip to content

Instantly share code, notes, and snippets.

@robsmith1776
Created December 29, 2015 06:54
Show Gist options
  • Save robsmith1776/2b5c645bd3a1c7a6f490 to your computer and use it in GitHub Desktop.
Save robsmith1776/2b5c645bd3a1c7a6f490 to your computer and use it in GitHub Desktop.
Get Email
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