def show_sparsity(matrix):
    """Show density and sparsity for binary matrix.

    Args:
        matrix:
    """
    matrix_density = matrix.mean().mean()
    print('Matrix density:', matrix_density)
    print('Matrix sparsity:', 1 - matrix_density)
