Notebook
SpeciesNames = df['Name'].unique()[1:1000] SpeciesNames.sort() print(SpeciesNames)
for el in df.loc[df['Order:']=='Calanoida','Name']: print(el)
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