sara kaviani
sara kaviani

Reputation: 31

how to import a .csv file from MacBook to jupyter

I am working with Jupyter and I want to import a .csv file from my MacBook but it can not find the file. I use

 pd.read_csv(⁩'/Users/sara/desktop/file_name.csv', encoding='ansi')

Upvotes: 0

Views: 2058

Answers (1)

rnorris
rnorris

Reputation: 2092

Unless you have renamed your desktop folder, it should probably be /Users/sara/Desktop/file_name.csv. Mac file paths are case-sensitive and the desktop folder is capitalized by default.

Upvotes: 1

Related Questions