-1

How can i import data from a online zip file to jupiter notebook . like the data is on

https://archive.ics.uci.edu/ml/machine-learning-databases/00320/

this link and i want to import it to jupiter notebook to work on it .So thanks .

1 Answers1

0

Please check following code:

from StringIO import StringIO
from zipfile import ZipFile
from urllib import urlopen

url = urlopen("https://archive.ics.uci.edu/ml/machine-learning-databases/00320/student.zip")

z = ZipFile(StringIO(url.read()))

for line in z.open("student-por.csv").readlines():
     print line
Sayali Sonawane
  • 12,289
  • 5
  • 46
  • 47