Created
December 25, 2017 10:38
-
-
Save sagarhowal/1f0cb555408d73427bcdac6febdfdbd1 to your computer and use it in GitHub Desktop.
Upload Dataset on Google Colaboratory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Uploading the Dataset | |
from google.colab import files | |
uploaded = files.upload() | |
#Save uploaded file on the Virtual Machine's | |
#Thanks to user3800642 from StackOverflow | |
with open("breast_cancer.csv", 'w') as f: | |
f.write(uploaded[uploaded.keys()[0]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Sagar
Try this
from google.colab import files
uploaded = files.upload()
for fn in uploaded.keys():
print('User uploaded file "{name}" with length {length} bytes'.format(
name=fn, length=len(uploaded[fn])))
from documentation as above code does not fec any bytestream