Pictures of Cooking Stoves
HIT_PATH = '../../../../src/'
institution_id = 7
lang = 'en'
import os,sys, folium
sys.path.insert(0, os.path.normpath(os.path.join(os.path.abspath(''), HIT_PATH)))
import hedera_types as hedera
import odk_interface as odk
mfi = hedera.mfi(institution_id,setPathBook=True)
data = mfi.read_survey(mfi.odk_data_name)
mfi.HH = odk.households(data)
# for images
import matplotlib.image as mpimg
from IPython.display import Image, display
%matplotlib inline
listOfImageNames = []
select = mfi.HH['C_Index']==0
data0 = data[select]
for d in data0['image_cooking_stove']:
if type(d)==str:
listOfImageNames.append(d)
for imageName in listOfImageNames:
display(Image(filename=imageName))
# for images
from IPython.display import Image, display
listOfImageNames = []
select = mfi.HH['C_Index']==1
data0 = data[select]
for d in data0['image_cooking_stove']:
if type(d)==str:
listOfImageNames.append(d)
for imageName in listOfImageNames:
display(Image(filename=imageName))
# for images
from IPython.display import Image, display
listOfImageNames = []
select = mfi.HH['C_Index']==3
data0 = data[select]
for d in data0['image_cooking_stove']:
if type(d)==str:
listOfImageNames.append(d)
for imageName in listOfImageNames:
display(Image(filename=imageName))