upperb=NDVI_LST[col[0]]>0.0
lowerb=NDVI_LST[col[0]]<0.1
edge_1=NDVI_LST[(upperb & lowerb)]

lst_values=[]
for i in edge_1[col[0]]:
        LST=NDVI_LST.loc[NDVI_LST[col[0]]==i,col[1]]
        NDVI=i
        for j in LST.values:
                lst_values.append(j)
df.loc[0.0,'w1月']=max(lst_values)

lst_values=[]
for i in edge_1[col[0]]:
        LST=NDVI_LST.loc[NDVI_LST[col[0]]==i,col[1]]
        NDVI=i
        for j in LST.values:
                lst_values.append(j)
df.loc[0.0,'d1月']=min(lst_values)





NDVI_bound=np.around(np.linspace(0,1,11).tolist(),decimals=2)

for k in range(1,13):
        for j in range(23):
                for i in range(10):
                        upperb=NDVI_LST[col[int(j)]]>NDVI_bound[int(i)]
                        lowerb=NDVI_LST[col[int(j)]]<NDVI_bound[int(i)+1]
                        edge_1=NDVI_LST[(upperb & lowerb)]
                        lst_values=[]
                        for l in edge_1[col[int(j)]]:
                                LST=NDVI_LST.loc[NDVI_LST[col[int(j)]]==l,col[int(j)+1]]
                                NDVI=i
                                for m in LST.values:
                                        lst_values.append(m)
        if lst_values==[]:
                df.loc[NDVI_bound[int(i)+1],'w'+str(k)+'月']=0
                df.loc[NDVI_bound[int(i)+1],'d'+str(k)+'月']=0
        else:
                df.loc[NDVI_bound[int(i)+1],'w'+str(k)+'月']=max(lst_values)
                df.loc[NDVI_bound[int(i)+1],'d'+str(k)+'月']=min(lst_values)