you can see that excel actually imported this into tablebut if you were to look at the raw text you' see that it' made up of comma-separated values the first line is the actual headings of each columnso what we have above are the number of years of prior experienceis the candidate currently employed or notnumber of previous employersthe level of educationwhether they went to top-tier schoolwhether they had an internship while they were in schooland finallythe target that we're trying to predict onwhether or not they got job offer in the end of the day nowwe need to read that information into an rdd so we can do something with it let' go back to our scriptsbx%bub tdufyu'jmf  tvoephdpotvmuvefnzebubtdjfodf btu)jsftdtwifbefs sbx%bubgjstu sbx%bub sbx%bubgjmufs mbnceby yifbefs the first thing we need to do is read that csv data inand we're going to throw away that first rowbecause that' our header informationremember sohere' little trick for doing that we start off by importing every single line from that file into raw data rddand could call that anything wantbut we're calling it tdufyu'jmf sparkcontext has ufyu'jmf function that will take text file and create new rddwhere each entryeach line of the rddconsists of one line of input make sure you change the path to that file to wherever you actually installed itotherwise it won' work nowi' going to extract the first linethe first row from that rddby using the gjstu function sonow the header rdd will contain one entry that is just that row of column headers and nowlook what' going on in the above codei' using gjmufs on my original data that contains all of the information in that csv fileand ' defining gjmufs function that will only let lines through if that line is not equal to the contents of that initial header row what 've done here isi've taken my raw csv file and 've stripped out the first line by only allowing lines that do not equal that first line to surviveand ' returning that back to the sbx%bub rdd variable again soi' taking sbx%bubfiltering out that first lineand creating new sbx%bub that only contains the data itself with me so farit' not that complicated