`row_number`, `min_rank`, `percent_rank`, `dense_rank`, `ntile` and `cume_dist`
  handles data frames with 0 rows. closes #762.