Skip to content

Commit

Permalink
Update clean_members_list.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-strange committed Oct 31, 2024
1 parent c73f95d commit 27186ec
Showing 1 changed file with 79 additions and 23 deletions.
102 changes: 79 additions & 23 deletions pipelines/true-north/clean_members_list.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 42,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -28,12 +28,11 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 43,
"metadata": {},
"outputs": [],
"source": [
"data = pd.read_excel(os.path.join(WDIR, 'true-north/True North October 2024 .xlsx'))\n",
"# additional_members = pd.read_excel(os.path.join(WDIR, 'true-north/true north_additional_members_list_19_06_24.xlsx'))"
"data = pd.read_excel(os.path.join(WDIR, 'true-north/True North October 2024 .xlsx'))"
]
},
{
Expand All @@ -45,7 +44,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 44,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -63,9 +62,43 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 45,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"['Record ID',\n",
" 'First Name',\n",
" 'Last Name',\n",
" 'Create Date',\n",
" 'Last Activity Date',\n",
" 'How many people work in your organisation?',\n",
" 'What sector(s) does your organisation operate in? [Other]',\n",
" 'What sector(s) does your organisation operate in??',\n",
" 'What sector(s) does your organisation operate in?',\n",
" 'Where is your organisation based? Select all that apply',\n",
" 'Where is your organisation based? Select all that apply [Other]',\n",
" 'Which theme of the True North report do you most identify with and could support activity around? (select all that apply)',\n",
" 'Which theme of the True North report do you most identify with and could support activity around? ',\n",
" 'Do you feel the True North report identified the key challenges and opportunities facing the region? ',\n",
" 'Are you interested in attending future True North events? ',\n",
" 'How would you like to be involved with the True North network (select all that apply)? [Other]',\n",
" 'How would you like to be involved with the True North network (select all that apply)?',\n",
" 'Are you currently a B Corp or in the process of becoming a B Corp?',\n",
" 'Would you be interested in hearing more from Brabners about the B Corp process?',\n",
" 'Company Name',\n",
" 'City',\n",
" 'Industry',\n",
" 'associated Company Domain (Contact Level)',\n",
" 'last_updated']"
]
},
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Currently have both create date (when the person filled the questionnaire for the first time) and the \"last_updated\"\n",
"# date, which is the \"Last Activity Date\" iff it exists, otherwise it is the \"Create Date\"\n",
Expand All @@ -82,7 +115,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 46,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -104,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 47,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -128,7 +161,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 48,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -139,7 +172,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 49,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -151,7 +184,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 50,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -172,16 +205,28 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 51,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"array(['1 - 10', '11 - 50', '1,000+', '251 - 500', '501 - 1,000',\n",
" '101 - 250', '51 - 100', '1 - 10; 11 - 50', nan], dtype=object)"
]
},
"execution_count": 51,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data['How many people work in your organisation?'].unique()"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 52,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -220,9 +265,20 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 53,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"array(['0-9', '10-49', '1000+', '250+', '50-249', nan], dtype=object)"
]
},
"execution_count": 53,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data.company_size.unique()"
]
Expand All @@ -236,7 +292,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 54,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -257,7 +313,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 55,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -307,7 +363,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 56,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -334,7 +390,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 57,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -344,7 +400,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 58,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -360,7 +416,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 59,
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit 27186ec

Please sign in to comment.