reset password
Author Message
306264301
Posts: 28
Posted 08:46 Oct 07, 2019 |

hi, does anybody knows how to read the data set into Jupyter notebook.

I type the link in to the line: https://raw.githubusercontent.com/mpourhoma/CS4661/master/iris.csv

but I get this error:

File "<ipython-inpupt-5-28514ea0986a>", line 1

https://raw.githubusercontent.com/mpourhoma/CS4661/master/iris/csv

syntaxError: invalid syntax

 

evosgan
Posts: 3
Posted 09:09 Oct 07, 2019 |

this is how I did mine:

url = 'https://raw.githubusercontent.com/mpourhoma/CS4661/master/iris.csv'
iris_df = pd.read_csv(url)

another way:

iris_df = pd.read_csv('https://raw.githubusercontent.com/mpourhoma/CS4661/master/iris.csv')
 

306264301
Posts: 28
Posted 09:23 Oct 07, 2019 |

thank you so much, I forgot about the pd.read_csv() function.