Skip to content

Instantly share code, notes, and snippets.

@bryanyang0528
Created October 10, 2014 14:13
Show Gist options
  • Save bryanyang0528/f7f59bdeb3d46c1a00cf to your computer and use it in GitHub Desktop.
Save bryanyang0528/f7f59bdeb3d46c1a00cf to your computer and use it in GitHub Desktop.
raw_sub = sc.textFile("/Users/bryanyang/Documents/Data/Ads Prediction/random_submission.csv",1)
raw_sub.cache() ##代表要將資料load到記憶體中
raw_sub.count() ##一樣要執行計算指令後才會load資料
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment