Skip to content

Commit ea1e743

Browse files
committed
Update for clarity
1 parent 248ae48 commit ea1e743

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

Diff for: COVID-19 Impact on Structural Occupation and Labour Force Distribution.ipynb

+16-13
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Start of analysis\n",
7+
"# COVID-19 Impact on Structural Occupation and Labour Force Distribution\n",
88
"\n",
9-
"Calculate whether each geocode is a net loser or gainer of employment.\n",
9+
"I have spent the last four years building https://sqwyre.com, which is an open data commercial location data explorer. Every quarter, we update (partially via FOI) all local authorities in England and Wales.\n",
1010
"\n",
11-
"If loser: \n",
11+
"These data give me the current occupation status of all commercial properties, and – derived from that – that m2 per employee which permits this calculation to work:\n",
1212
"\n",
13-
"- Categories lost in m2 and units\n",
13+
"- Sqwyre gives me the total actively-used floor area of commercial property in each Standard Industry Code (SIC);\n",
14+
"- ONS publish employment data by place-of-work;\n",
15+
"- Divide the one by the other and … we have m2/job;\n",
1416
"\n",
15-
"If gainer:\n",
17+
"However, ONS publish employment by both place-of-work and place-of-residence. The difference – bluntly and fuzzily – is an indication of those who commute from home to work outside of their local authority: \n",
1618
"\n",
17-
"- Categories required in m2 and units\n",
19+
"- [Earnings and hours worked, place of residence by local authority: ASHE Table 8](https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/earningsandworkinghours/datasets/placeofresidencebylocalauthorityashetable8)\n",
20+
"- [Earnings and hours worked, place of work by local authority: ASHE Table 7](https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/earningsandworkinghours/datasets/placeofworkbylocalauthorityashetable7)\n",
1821
"\n",
19-
"First get winners/losers, then calculate ratio of employment"
22+
"Combine these and apply, and you get the dataseries I developed. Run a scenario – say 10% of those currently commuting stop doing so, set the proportions by their current area of occupation (Retail, Office, Leisure, Industrial) – and you have a rough guide to the implications."
2023
]
2124
},
2225
{
@@ -40,9 +43,9 @@
4043
"#from tqdm import tqdm\n",
4144
"#https://stackoverflow.com/questions/42855972/printing-on-the-same-line-on-a-jupyter-notebook\n",
4245
"\n",
43-
"dfe = pd.read_csv(\"C:/Users/Turukawa/OneDrive/Whythawk/Projects/Pikhaya/Custom_draws/employment_by_place_of_residence.csv\")\n",
44-
"dfs = pd.read_csv(\"C:/Users/Turukawa/OneDrive/Whythawk/Projects/Pikhaya/Custom_draws/report_summary.csv\")\n",
45-
"dfa = pd.read_csv(\"C:/Users/Turukawa/OneDrive/Whythawk/Projects/Pikhaya/Custom_draws/report_summary_all_quarters.csv\")"
46+
"dfe = pd.read_csv(\"~/Custom_draws/employment_by_place_of_residence.csv\")\n",
47+
"dfs = pd.read_csv(\"~/Custom_draws/report_summary.csv\")\n",
48+
"dfa = pd.read_csv(\"~/Custom_draws/report_summary_all_quarters.csv\")"
4649
]
4750
},
4851
{
@@ -865,7 +868,7 @@
865868
"metadata": {},
866869
"outputs": [],
867870
"source": [
868-
"df.to_excel(\"C:/Users/Turukawa/OneDrive/Whythawk/Projects/Pikhaya/Custom_draws/covid-19-impact.xlsx\", index=False)"
871+
"df.to_excel(\"~/Custom_draws/covid-19-impact.xlsx\", index=False)"
869872
]
870873
},
871874
{
@@ -955,7 +958,7 @@
955958
"metadata": {},
956959
"outputs": [],
957960
"source": [
958-
"df = pd.read_excel(\"C:/Users/Turukawa/OneDrive/Whythawk/Projects/Pikhaya/Custom_draws/covid-19-impact.xlsx\")"
961+
"df = pd.read_excel(\"~/covid-19-impact.xlsx\")"
959962
]
960963
},
961964
{
@@ -977,7 +980,7 @@
977980
"\n",
978981
"google_source = \"https://www.google.com/covid19/mobility/\"\n",
979982
"google_url = \"https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv\"\n",
980-
"google_file = \"C:/Users/Turukawa/OneDrive/Whythawk/Projects/Pikhaya/Custom_draws/google-mobility-report.csv\"\n",
983+
"google_file = \"~/google-mobility-report.csv\"\n",
981984
"\n",
982985
"clr = {\n",
983986
" \"red\": \"#D33826\",\n",

0 commit comments

Comments
 (0)