nowwe're going to use nbq function what we need to do next is start to make more structure out of this information right nowevery row of my rdd is just line of textit is comma-delimited textbut it' still just giant line of textand want to take that commaseparated value list and actually split it up into individual fields at the end of the dayi want each rdd to be transformed from line of text that has bunch of information separated by commas into python list that has actual individual fields for each column of information that have sothat' what this lambda function doesdtw%bub sbx%bubnbq mbnceby tqmju it calls the built-in python function tqmjuwhich will take row of inputand split it on comma charactersand divide that into list of every field delimited by commas the output of this map functionwhere passed in lambda function that just splits every line into fields based on commasis new rdd called dtw%bub andat this pointdtw%bub is an rdd that containson every rowa list where every element is column from my source data nowwe're getting close it turns out that in order to use decision tree with mlliba couple of things need to be true first of allthe input has to be in the form of labeledpoint data typesand it all has to be numeric in nature sowe need to transform all of our raw data into data that can actually be consumed by mlliband that' what the dsfbuf-bcfmfe pjout function that we skipped past earlier does we'll get to that in just secondfirst here' the call to itusbjojoh%bub dtw%bubnbq dsfbuf-bcfmfe pjout we're going to call map on dtw%buband we are going to pass it the dsfbuf-bcfmfe pjout functionwhich will transform every input row into something even closer to what we want at the end of the day solet' look at what dsfbuf-bcfmfe pjout doesefgdsfbuf-bcfmfe pjout gjfmet zfbst&yqfsjfodf jou gjfmet fnqmpzfe cjobsz gjfmet qsfwjpvt&nqmpzfst jou gjfmet fevdbujpo-fwfm nbq&evdbujpo gjfmet upq jfs cjobsz gjfmet joufsofe cjobsz gjfmet ijsfe cjobsz gjfmet sfuvso-bcfmfe pjou ijsfebssbz <zfbst&yqfsjfodffnqmpzfeqsfwjpvt&nqmpzfstfevdbujpo-fwfmupq jfsjoufsofe