How to capture a CSV file and read it into a Pandas Dataframe?

David Shi davidgshi at yahoo.co.uk
Wed Apr 5 11:30:55 EDT 2017



I tried the following codes:
import urllib2response = urllib2.urlopen('http://cordis.europa.eu/search/result_en?q=uk&format=csv')myCSV = response.read()
myFile = pd.read_csv(myCSV)

but, it did not work well.
Can any one help?
Regards.
David


More information about the Python-list mailing list