doc for unique_rows
reformatting code, docstrings.
reformatting code, docstrings.