title: How to convert a csv file to a dataframe in Python 3.6
body: <p>Im trying to tackle the Kaggle Titanic challenge. Bear with me, as Im fairly new to data science.  I was previously struggling to get the following syntax to work: my previous question(Reading CSV files in Python 3.6, using IntelliJ IDEA)
  <a href="https://stackoverflow.com/questions/50454458/reading-csv-files-in-python-using-jupyter-notebook-through-intellij-idea?noredirect=1#comment87922405_50454458">Reading CSV files in Python, using Jupyter Notebook through IntelliJ IDEA</a></p>
  
  <pre><code>import numpy as np
  import pandas as pd
  from pandas import Series,Dataframe
  
  titanic_df = pd.read_csv('train.csv')
  titanic.head()
  </code></pre>
  
  <p>However, using the below code, I am able to open the file and read it/print its contents, but i need to convert the data to a dataframe so that it can be worked with.  Any suggestions? </p>
  
  <pre><code>file_path = '/Volumes/LACIE SETUP/Data_Science/Data_Analysis_Viz_InPython/Example_Projects/train.csv'
  
  with open(file_path) as train_fp:
      for line in train_fp:
  #         print(line)
  </code></pre>
  
  <p>This above code was able to print out the data but when I tried passing 
  'file_path' to:</p>
  
  <pre><code>titanic_df = pd.read_csv('file_path.csv')
  </code></pre>
  
  <p>i received the same error as before. Not sure what Im doing wrong. I KNOW the file 'train.csv' exists in that location because 1) i put it there and 2) its contents can be printed when pointed to its location.  </p>
  
  <p>So what the heck am I doing wrong??? :/</p>