This notebook requires access to a data directory with DLR survey data saved as feather objects. The data files must be saved in /data/tables/
.
In [2]:
import processing.procore as pcore
import features.socios as s
tbls = pcore.loadTables()
print("Stored Data Tables\n")
for k in sorted(list(tbls.keys())):
print(k)
In [3]:
tbls['questionaires'][tbls['questionaires'].QuestionaireID.isin([3, 4, 6, 7, 1000000, 1000001, 1000002])]
Out[3]:
In [4]:
searchterm = ['earn per month', 'watersource', 'GeyserNumber', 'GeyserBroken', 'roof', 'wall', 'main switch', 'floor area']
questionaire_id = 3
s.searchQuestions(searchterm, questionaire_id)
Out[4]:
In [5]:
searchterm = ['earn per month', 'watersource', 'GeyserNumber', 'GeyserBroken', 'roof', 'wall', 'main switch', 'floor area']
questionaire_id = 3
answers = s.searchAnswers(searchterm, questionaire_id)
print(answers[1])
answers[0].head()
Out[5]:
In [6]:
s.recorderLocations(year = 2011)
Out[6]:
In [ ]: