I'm new to functions and cannot figure out why this returns 'None' Essentially the State is a number, so this should input the state and spit out the population. I'll change the format to be more vague and helpful for all once I understand better. Thanks!
def ca_pov(state, spending=0):
state = person[person.state==state].copy(deep=True)
total_population = state.weight.sum()
return
total_population
print(ca_pov(11))
return person[person.state==state].copy(deep=True).weight.sum()