title: Why wont my code execute both in Terminal & on spyder IDE?
body: <p>I'm analysing this data set using ML techniques in Python3.5 on sypder IDE (Ubuntu OS) and my program is supposed to work fine (matches perfectly with <a href="https://pythonprogramming.net/scikit-learn-sklearn-machine-learning-data-analysis-python-pandas-tutorial/" rel="nofollow noreferrer">tutorial program</a>) but it does nothing when run - nothing gets printed or returned. The console of spyder IDE displays the following and does nothing after that: </p>
  
  <pre><code>runfile('/media/username/Laniakea/Projects/Training/SPYDER/classifier/sk_classifier.py', wdir='/media/username/Laniakea/Projects/Training/SPYDER/classifier')
  </code></pre>
  
  <p>I used to get this when a new program starts to run, and the output would follow but here, I get nothing. My program:</p>
  
  <pre><code>from sklearn import svm
  import pandas as pd
  import numpy as np
  
  df_pickled_train2 = pd.read_pickle('df_train.pickle')
  df_pickled_test2 = pd.read_pickle('df_test.pickle')
  
  df_pickled_train2_y = pd.read_pickle('df_train_y.pickle')
  df_pickled_test2_y = pd.read_pickle('df_test_y.pickle')
  
  X = np.array(df_pickled_train2)
  y = np.array(df_pickled_train2_y)
  
  X_test = np.array(df_pickled_test2)
  y_test = np.array(df_pickled_test2_y)
  
  clf = svm.SVC(kernel='linear')
  clf.fit(X,y.ravel())
  
  print(clf.score(X_test,y_test))
  print("Done")
  </code></pre>
  
  <p>If you want to see how the pickles get created (and this program runs fine - it even prints out the final line "Done" or anything else I want it to print):</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  
  df_train = pd.read_csv('Adult-Incomes/train-labelled-final-variables-condensed-coded-countries-removed-unlabelled-income-to-the-left-relabelled-copy.csv')
  df_test = pd.read_csv('Adult-Incomes/test-final-variables-cleaned-coded-copy-unlabelled.csv')
  
  df_train_no_y = df_train.drop('Income',1)
  df_test_no_y = df_test.drop(df_test.columns[0],axis=1)
  
  df_train_y = pd.DataFrame(df_train['Income'])
  df_train_y.to_pickle('df_train_y.pickle')
  
  df_test_y = df_test[df_test.columns[0]]
  df_test_y.to_pickle('df_test_y.pickle')
  
  df_test_no_y.to_pickle('df_test.pickle')
  df_train_no_y.to_pickle('df_train.pickle')
  
  print ("DONE")
  </code></pre>
  
  <p>PS: Even if run from the Terminal, it simply executes but does nothing. Meaning, in terminal, the cursor would go to the next line and print out the output before prompting for another command right, but here, it simply stays there. It's not even hung, as the cursor blinks and computer is not hung. It feels like, the code somehow sends the executor into a limbo.</p>
  
  <p>P.P.S: I even suspected that it is running a complex algo, genuinely requiring time and left it over night. Nothing happened even then.</p>
  
  <p>Can someone tell me why my program wont run or display anything?</p>