001. how do you use csv file on google colaboratory
@
001. how do you use csv file on google colaboratory
import tensorflow as tf
import numpy as np
import io
from google.colab import files
uploaded_file=files.upload()
for fn in uploaded_file.keys():
print("user uploaded file '{name}' with length {length} bytes"\
.format(name=fn,length=len(uploaded_file[fn])))
uploaded_file_on_web=io.StringIO(uploaded_file["data-01-test-score.csv"].decode("utf-8"))
x_and_y_data_csv=np.loadtxt(uploaded_file_on_web,delimiter=',',dtype=np.float32)