Skip to content

Commit

Permalink
Update fslite/fs/fdataframe.py
Browse files Browse the repository at this point in the history
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
  • Loading branch information
ypriverol and qodo-merge-pro[bot] authored Sep 25, 2024
1 parent 8608117 commit 6ecbaca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fslite/fs/fdataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(

# Check sparsity
num_elements = numerical_df.size
num_zeros = (numerical_df == 0).sum().sum()
num_zeros = np.count_nonzero(numerical_df == 0)
sparsity = num_zeros / num_elements

dense_matrix_size = numerical_df.memory_usage(deep=True).sum() # In bytes
Expand Down

0 comments on commit 6ecbaca

Please sign in to comment.