code: def nth_value(expr, nth, skip_nulls=False, sort=None, ascending=True):
      return _cumulative_op(expr, NthValue, data_type=expr._data_type, sort=sort,
                            ascending=ascending, _nth=nth, _skip_nulls=skip_nulls)