Spaces:
Sleeping
Sleeping
Update clients.py
Browse files- clients.py +2 -2
clients.py
CHANGED
@@ -475,13 +475,13 @@ def BH_industry(email_receiver,calendly_link,sender_name):
|
|
475 |
df[website_column] = df[website_column].astype(str)
|
476 |
df=df[[website_column,company_column,name_column,Email_column]]
|
477 |
df.columns = ["Website","Company Name for Emails","First Name","Email"]
|
478 |
-
df = df.drop_duplicates(subset="
|
479 |
df = df.dropna().loc[~(df == '').all(axis=1)]
|
480 |
else:
|
481 |
df[website_column] = df[website_column].astype(str)
|
482 |
df=df[[website_column,company_column,"scraped_content",name_column,Email_column]]
|
483 |
df.columns = ["Website","Company Name for Emails","scraped_content","First Name","Email"]
|
484 |
-
df = df.drop_duplicates(subset="
|
485 |
df = df.dropna().loc[~(df == '').all(axis=1)]
|
486 |
|
487 |
df = df.dropna().loc[~(df == '').all(axis=1)]
|
|
|
475 |
df[website_column] = df[website_column].astype(str)
|
476 |
df=df[[website_column,company_column,name_column,Email_column]]
|
477 |
df.columns = ["Website","Company Name for Emails","First Name","Email"]
|
478 |
+
df = df.drop_duplicates(subset="Email", keep='first')
|
479 |
df = df.dropna().loc[~(df == '').all(axis=1)]
|
480 |
else:
|
481 |
df[website_column] = df[website_column].astype(str)
|
482 |
df=df[[website_column,company_column,"scraped_content",name_column,Email_column]]
|
483 |
df.columns = ["Website","Company Name for Emails","scraped_content","First Name","Email"]
|
484 |
+
df = df.drop_duplicates(subset="Email", keep='first')
|
485 |
df = df.dropna().loc[~(df == '').all(axis=1)]
|
486 |
|
487 |
df = df.dropna().loc[~(df == '').all(axis=1)]
|