lynn-twinkl commited on
Commit
56aa4c1
·
1 Parent(s): 97a0795

Removed intermediary notebook used for cleaning data

Browse files
Files changed (1) hide show
  1. notebooks/Untitled.ipynb +0 -225
notebooks/Untitled.ipynb DELETED
@@ -1,225 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "id": "acad423d-8483-4c25-9a48-23ac442a5651",
7
- "metadata": {},
8
- "outputs": [],
9
- "source": [
10
- "import pandas as pd\n",
11
- "import numpy as np\n",
12
- "import re"
13
- ]
14
- },
15
- {
16
- "cell_type": "code",
17
- "execution_count": 2,
18
- "id": "ffcfa0af-8dad-48e8-ab77-6915c7eda80a",
19
- "metadata": {},
20
- "outputs": [],
21
- "source": [
22
- "df = pd.read_csv('data/april-data.csv')"
23
- ]
24
- },
25
- {
26
- "cell_type": "code",
27
- "execution_count": 3,
28
- "id": "f80e366d-9a29-4eef-b93f-69d9658658d7",
29
- "metadata": {},
30
- "outputs": [
31
- {
32
- "data": {
33
- "text/html": [
34
- "<div>\n",
35
- "<style scoped>\n",
36
- " .dataframe tbody tr th:only-of-type {\n",
37
- " vertical-align: middle;\n",
38
- " }\n",
39
- "\n",
40
- " .dataframe tbody tr th {\n",
41
- " vertical-align: top;\n",
42
- " }\n",
43
- "\n",
44
- " .dataframe thead th {\n",
45
- " text-align: right;\n",
46
- " }\n",
47
- "</style>\n",
48
- "<table border=\"1\" class=\"dataframe\">\n",
49
- " <thead>\n",
50
- " <tr style=\"text-align: right;\">\n",
51
- " <th></th>\n",
52
- " <th>Id</th>\n",
53
- " <th>Date/Time Requested</th>\n",
54
- " <th>Giveaway title</th>\n",
55
- " <th>Customer Name</th>\n",
56
- " <th>Email_address</th>\n",
57
- " <th>School_name</th>\n",
58
- " <th>Postal_address</th>\n",
59
- " <th>Address_line_2</th>\n",
60
- " <th>Address_city</th>\n",
61
- " <th>Postcode</th>\n",
62
- " <th>Additional_info</th>\n",
63
- " </tr>\n",
64
- " </thead>\n",
65
- " <tbody>\n",
66
- " <tr>\n",
67
- " <th>0</th>\n",
68
- " <td>312781</td>\n",
69
- " <td>4/1/25 8:08</td>\n",
70
- " <td>April Community Collection: Gardening Bundle G...</td>\n",
71
- " <td>Kate Thompson</td>\n",
72
- " <td>kate.thompson@fhhschools.com</td>\n",
73
- " <td>Fountain Head House School</td>\n",
74
- " <td>Church Road</td>\n",
75
- " <td>NaN</td>\n",
76
- " <td>Saltash</td>\n",
77
- " <td>PL12 4AE</td>\n",
78
- " <td>In our school we have an Outdoors Instructor w...</td>\n",
79
- " </tr>\n",
80
- " <tr>\n",
81
- " <th>1</th>\n",
82
- " <td>312783</td>\n",
83
- " <td>4/1/25 8:32</td>\n",
84
- " <td>April Community Collection: Gardening Bundle G...</td>\n",
85
- " <td>Shona Wilson</td>\n",
86
- " <td>shonaedment1994@gmail.com</td>\n",
87
- " <td>S4YC @ Little Owls</td>\n",
88
- " <td>Gadbrook Road</td>\n",
89
- " <td>NaN</td>\n",
90
- " <td>Northwich</td>\n",
91
- " <td>CW9 7JL</td>\n",
92
- " <td>We are currently working on our outdoor provis...</td>\n",
93
- " </tr>\n",
94
- " <tr>\n",
95
- " <th>2</th>\n",
96
- " <td>312790</td>\n",
97
- " <td>4/1/25 9:22</td>\n",
98
- " <td>April Community Collection: Gardening Bundle G...</td>\n",
99
- " <td>Charlotte Coldham-Wood</td>\n",
100
- " <td>daveandcharwood@gmail.com</td>\n",
101
- " <td>Archbishop Benson School</td>\n",
102
- " <td>Archbishop Benson School</td>\n",
103
- " <td>Bodmin Road</td>\n",
104
- " <td>Truro</td>\n",
105
- " <td>TR1 1BN</td>\n",
106
- " <td>I would use this bundle with our SEN children,...</td>\n",
107
- " </tr>\n",
108
- " <tr>\n",
109
- " <th>3</th>\n",
110
- " <td>312801</td>\n",
111
- " <td>4/1/25 10:37</td>\n",
112
- " <td>April Community Collection: Gardening Bundle G...</td>\n",
113
- " <td>Erica Bowen</td>\n",
114
- " <td>erica.bowen@thewillowseyc.org.uk</td>\n",
115
- " <td>The Willows School</td>\n",
116
- " <td>Fishermead Boulevard</td>\n",
117
- " <td>Fishermead</td>\n",
118
- " <td>Milton Keynes</td>\n",
119
- " <td>mk6 2lp</td>\n",
120
- " <td>I run outdoor learning at my school, we are in...</td>\n",
121
- " </tr>\n",
122
- " <tr>\n",
123
- " <th>4</th>\n",
124
- " <td>312802</td>\n",
125
- " <td>4/1/25 10:42</td>\n",
126
- " <td>April Community Collection: Gardening Bundle G...</td>\n",
127
- " <td>Amy Smith</td>\n",
128
- " <td>amysmith@ourladyofgracercprimaryschool.co.uk</td>\n",
129
- " <td>Our Lady of Grace RC Primary School</td>\n",
130
- " <td>Highfield road</td>\n",
131
- " <td>Prestwich</td>\n",
132
- " <td>Bury</td>\n",
133
- " <td>m25 0as</td>\n",
134
- " <td>Our school is passionate about hands-on learni...</td>\n",
135
- " </tr>\n",
136
- " </tbody>\n",
137
- "</table>\n",
138
- "</div>"
139
- ],
140
- "text/plain": [
141
- " Id Date/Time Requested \\\n",
142
- "0 312781 4/1/25 8:08 \n",
143
- "1 312783 4/1/25 8:32 \n",
144
- "2 312790 4/1/25 9:22 \n",
145
- "3 312801 4/1/25 10:37 \n",
146
- "4 312802 4/1/25 10:42 \n",
147
- "\n",
148
- " Giveaway title Customer Name \\\n",
149
- "0 April Community Collection: Gardening Bundle G... Kate Thompson \n",
150
- "1 April Community Collection: Gardening Bundle G... Shona Wilson \n",
151
- "2 April Community Collection: Gardening Bundle G... Charlotte Coldham-Wood \n",
152
- "3 April Community Collection: Gardening Bundle G... Erica Bowen \n",
153
- "4 April Community Collection: Gardening Bundle G... Amy Smith \n",
154
- "\n",
155
- " Email_address \\\n",
156
- "0 kate.thompson@fhhschools.com \n",
157
- "1 shonaedment1994@gmail.com \n",
158
- "2 daveandcharwood@gmail.com \n",
159
- "3 erica.bowen@thewillowseyc.org.uk \n",
160
- "4 amysmith@ourladyofgracercprimaryschool.co.uk \n",
161
- "\n",
162
- " School_name Postal_address \\\n",
163
- "0 Fountain Head House School Church Road \n",
164
- "1 S4YC @ Little Owls Gadbrook Road \n",
165
- "2 Archbishop Benson School Archbishop Benson School \n",
166
- "3 The Willows School Fishermead Boulevard \n",
167
- "4 Our Lady of Grace RC Primary School Highfield road \n",
168
- "\n",
169
- " Address_line_2 Address_city Postcode \\\n",
170
- "0 NaN Saltash PL12 4AE \n",
171
- "1 NaN Northwich CW9 7JL \n",
172
- "2 Bodmin Road Truro TR1 1BN \n",
173
- "3 Fishermead Milton Keynes mk6 2lp \n",
174
- "4 Prestwich Bury m25 0as \n",
175
- "\n",
176
- " Additional_info \n",
177
- "0 In our school we have an Outdoors Instructor w... \n",
178
- "1 We are currently working on our outdoor provis... \n",
179
- "2 I would use this bundle with our SEN children,... \n",
180
- "3 I run outdoor learning at my school, we are in... \n",
181
- "4 Our school is passionate about hands-on learni... "
182
- ]
183
- },
184
- "execution_count": 3,
185
- "metadata": {},
186
- "output_type": "execute_result"
187
- }
188
- ],
189
- "source": [
190
- "df.head()"
191
- ]
192
- },
193
- {
194
- "cell_type": "code",
195
- "execution_count": null,
196
- "id": "93946708-5ff0-4a1f-9e86-c29c702945c8",
197
- "metadata": {},
198
- "outputs": [],
199
- "source": [
200
- "for_supervised_labeling = df[["
201
- ]
202
- }
203
- ],
204
- "metadata": {
205
- "kernelspec": {
206
- "display_name": "Python 3 (ipykernel)",
207
- "language": "python",
208
- "name": "python3"
209
- },
210
- "language_info": {
211
- "codemirror_mode": {
212
- "name": "ipython",
213
- "version": 3
214
- },
215
- "file_extension": ".py",
216
- "mimetype": "text/x-python",
217
- "name": "python",
218
- "nbconvert_exporter": "python",
219
- "pygments_lexer": "ipython3",
220
- "version": "3.12.9"
221
- }
222
- },
223
- "nbformat": 4,
224
- "nbformat_minor": 5
225
- }