would change these to ``na_position == 'last'`` and so forth (here and next section)