Notebook
def getabundance(colname,key,origdf,matchcol): abundanceArray=origdf.loc[(origdf.Key==key)&(origdf[matchcol]==colname), ['Abundance(#/m3)']] abundance=np.nansum(abundanceArray) return abundance
def getabundance(colname,key,origdf): abundanceArray=df.loc[(origdf.Key==key)&(origdf['Order:']==colname)&(origdf['Family:']==colname)&(origdf['Name']==colname), ['Abundance(#/m3)']] abundance=np.nansum(abundanceArray) return abundance