def aqi(daerah): datapku = brain.getdata(daerah, ispuapi.getdatabmkg()) data_clean = cleaner.tolatin1(cleaner.removegarbage(datapku)) dataispu = brain.getdataispu(data_clean.split()) return dataispu
def aqi(daerah): return brain.getdataispu(cleaner.tolatin1(cleaner.removegarbage(brain.getdata(daerah, getdatabmkg()))).split())
def getdataplb(): datapku = brain.getdata('pku', ispuapi.getdatabmkg()) data_clean = cleaner.tolatin1(cleaner.removegarbage(datapku)) dataipsu = brain.getdataispu(data_clean.split())