Fix year (uncomplete param)

index_by_code kwarg is convenient to variables