How do I import this CSV file into my JupyterLab DataFrame?
I want it to be transferred into a new DataFrame named Titanic I have done a Google search, as well as looked into the:
Pandas.read_csv() function? I know that JupyterLab has a read_csv
function that might solve the problem.
I did try:
import "https://raw.githubusercontent.com/pandas-dev/pandas/master/doc/data/titanic.csv" as Titanic
But that raised an error:
File "<ipython-input-1-67adbf7f2871>", line 2
import "https://raw.githubusercontent.com/pandas-dev/pandas/master/doc/data/titanic.csv" as Titanic
SyntaxError: invalid syntax