Update 'L1 - Introduction to Apache Spark/L1_interactive_bike_analysis_python_with_rdd.ipynb'

master
Vladimir Protsenko 2 years ago
parent 99303ce0f1
commit 2f8b44e37f

@ -70,18 +70,6 @@
"sc = SparkContext(conf=conf)" "sc = SparkContext(conf=conf)"
] ]
}, },
{
"cell_type": "code",
"execution_count": 133,
"id": "47896fd0-906e-413d-8980-3948d73a3067",
"metadata": {},
"outputs": [],
"source": [
"tripData = sc.textFile(\"tripd_with_error.csv\")\n",
"tripsHeader = tripData.first()\n",
"trips = tripData.filter(lambda row: row != tripsHeader).map(lambda row: row.split(\",\", -1))"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 10,

Loading…
Cancel
Save