pgg08927
pgg08927

Reputation: 175

pandas.read_csv() using url - file location

I am using below code in jupyter notebook to read csv from url.

df_train = pd.read_csv('https://storage.googleapis.com/tf-datasets/titanic/train.csv')

Any idea where the csv file gets saved on drive?

Upvotes: 0

Views: 320

Answers (1)

Abimbola Ojikutu
Abimbola Ojikutu

Reputation: 467

I doubt if it gets saved except you download it or you can write df_train to a .csv with:

df_train.to_csv('train.csv')

This will be saved in your present working directory.

Upvotes: 1

Related Questions