import numpy as np battle_deaths = [[344, 2345], [253, 4345]] deaths = np.array(battle_deaths) deaths deaths[0, 1] deaths[:, 1] deaths[1, :] civilian_deaths = np.array([4352, 233, 3245, 256, 2394]) civilian_deaths few_civ_deaths = np.where(civilian_deaths < 500) few_civ_deaths civ_deaths = civilian_deaths[few_civ_deaths] civ_deaths