In [2]:
import reader
import pandas as pd
import os
Usage of this connection code:
Download 'connect_to_drive.py' and 'reader.py' from Github.
Download 'drive-python-quickstart.json' from google drive 'Intermediate data' folder and put it the same folder with the codes.
Upload the (processed) file (to use) into folder 'Intermediate data' in drive.
Fill up the 'Processing log'. Make a record of what's being updated.
Add/modify the file name in reader.py
Use the path of your local data when calling reader. e.g. data = reader.Data('Your Path'). Leaving path blank will lead to the defult path, i.e a 'data' folder under 'reader.py' directory.
In [4]:
# data = reader.Date(os.getcwd()+'/ICO_data/')
# use default path instead
data = reader.Data()
In [7]:
data['demographics'].head()
Out[7]:
In [8]:
data['ICD_for_Enc'].head()
Out[8]:
In [ ]: