Skip to content

Commit

Permalink
extension mail
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisEidelman committed Apr 20, 2017
1 parent c357eea commit 661e409
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions extenstion_mail.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
"""
"""

import pandas as pd

tab = pd.read_csv('csv\\annuaire_20160905.csv', encoding='cp1252')
serie_exstension = tab['an/adresseCourriel'].str.split('@').str[1]

liste_extension = serie_exstension[serie_exstension.notnull()].unique()

gouvfr = [x for x in liste_extension if x[-7:] == 'gouv.fr']
ambassade = [x for x in liste_extension if 'ambafrance' in x]
not_gouvfr_nor_ambassade = [x for x in liste_extension
if x not in gouvfr and x not in ambassade]

serie_exstension[serie_exstension.isin(not_gouvfr_nor_ambassade)].value_counts()

0 comments on commit 661e409

Please sign in to comment.