Skip to content

Commit

Permalink
adding docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaalbashir committed Oct 31, 2023
1 parent ac00004 commit eddc20e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions acro/acro_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,21 @@ def create_crosstab_masks( # pylint: disable=too-many-arguments,too-many-locals
return masks


def delete_empty_rows_columns(table):
"""Deletes empty rows and columns from table."""
def delete_empty_rows_columns(table: DataFrame) -> tuple[DataFrame, list[str]]:
"""Deletes empty rows and columns from table.
Parameters
----------
table : DataFrame
The table where the empty rows and columns will be deleted from.
Returns
-------
DataFrame
The resulting table where the empty columns and rows were deleted.
list[str]
A comment showing information about the deleted columns and rows.
"""
deleted_rows = []
deleted_cols = []
# define empty columns and rows using boolean masks
Expand Down

0 comments on commit eddc20e

Please sign in to comment.