Skip to content

Commit eb0ec14

Browse files
committed
Update Exercise08_Spark.ipynb
1 parent ac85955 commit eb0ec14

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Big_Data_For_Engineers/exercise08/Exercise08_Spark.ipynb

-13
Original file line numberDiff line numberDiff line change
@@ -837,19 +837,6 @@
837837
"outputs": [],
838838
"source": []
839839
},
840-
{
841-
"cell_type": "code",
842-
"execution_count": null,
843-
"metadata": {
844-
"tags": []
845-
},
846-
"outputs": [],
847-
"source": [
848-
"correct = test_entries.map(lambda e: (e[\"country\"], len(e[\"choices\"]) > 3)).groupByKey()\n",
849-
"outcomes = correct.mapValues(lambda e: float(list(e).count(True))/len(e)).sortBy(lambda e: e[1], ascending=False).collect()\n",
850-
"print(outcomes[:10])"
851-
]
852-
},
853840
{
854841
"cell_type": "markdown",
855842
"metadata": {},

0 commit comments

Comments
 (0)