Lin Ruonan
asked on
anaconda import csv file
Hello, I am a newbie in Python, and I am wondering how to import a dataset(csv file) to my Anaconda. Thanks in advance~
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Since you mentioned Anaconda distribution, you should already have pandas package installed - which is all you need to deal with csv, excel, and many other data formats.
Using pandas is extremely easy. Here is an example of how to read in one of the classic datasets, titanic passenger data, directly from an online resource (note: this csv file is accessible as of 1 March 2018, note that some time in future this file might not be accessible any more, as I have grabbed it from a random git repository using a quick google search):
Open in new window