I am doing some data pre-processing on Google Colab and just wondering how it works with manipulating dataset. For example R does not change the original dataset until you use write.csv to export the changed dataset. Does it work similarly in colab? Thank you!
0
votes
1 Answers
0
votes
Until you explicitly save your changed data, e.g. using df.to_csv to the same file you read from, your changed dataset is not saved.
You must remember that due to inactivity (up to an hour or so), you colab session might expire and all progress be lost.
Update
- To download a model, dataset or a big file from Google Drive, gdown command is already available
!gdown https://drive.google.com/uc?id=FILE_ID
- Download your code from GitHub and run predictions using the model you already downloaded
!git clone https://USERNAME:[email protected]/username/project.git
- Write ! before a line of your code in colab and it would be treated as bash command. You can download files form internet using
wgetfor example
!wget file_url
- You can commit and push your updated code to GitHub etc. And updated dataset / model to Google Drive or Dropbox.
pandas,numpyanddatetime- nilsinelabore