..
This commit is contained in:
parent
ab688243d7
commit
463bd4c647
54 changed files with 13239 additions and 625 deletions
|
|
@ -390,14 +390,14 @@
|
|||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"PROPERTY_TYPE — 5 distinct values:\n",
|
||||
"PROPERTY_TYPE: 5 distinct values:\n",
|
||||
" House 17,437,884\n",
|
||||
" Flat 8,236,696\n",
|
||||
" Bungalow 2,448,109\n",
|
||||
" Maisonette 710,695\n",
|
||||
" Park home 14,577\n",
|
||||
"\n",
|
||||
"BUILT_FORM — 9 distinct values:\n",
|
||||
"BUILT_FORM: 9 distinct values:\n",
|
||||
" Semi-Detached 8,777,318\n",
|
||||
" Mid-Terrace 7,972,697\n",
|
||||
" Detached 6,428,144\n",
|
||||
|
|
@ -414,7 +414,7 @@
|
|||
"source": [
|
||||
"for col_name in [\"PROPERTY_TYPE\", \"BUILT_FORM\"]:\n",
|
||||
" counts = scan().group_by(col_name).len().sort(\"len\", descending=True).collect()\n",
|
||||
" print(f\"{col_name} — {len(counts)} distinct values:\")\n",
|
||||
" print(f\"{col_name}: {len(counts)} distinct values:\")\n",
|
||||
" for row in counts.iter_rows(named=True):\n",
|
||||
" print(f\" {row[col_name]!s:30s} {row['len']:>12,}\")\n",
|
||||
" print()"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue