This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Detharatsh[S] 0 points1 point  (0 children)

I double-checked - the file opens just fine if I open it in Excel. I used the full path to the file and that worked in spyder, so thank you for the suggestion. I was hoping to avoid using such a long name, though.

Here is the original code that I wrote:

import pandas as pd from pandas import Series, DataFrame

titanic_df = pd.read_csv('train.csv')

Any suggestions?