Skip to content

Commit

Permalink
MAINT: adjust to change in pd.DataFrame interaction with >
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed Nov 7, 2023
1 parent d3f82fe commit d275c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biom/tests/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ def test_to_dataframe_is_sparse(self):
df = example_table.to_dataframe()
density = (float(example_table.matrix_data.getnnz()) /
np.prod(example_table.shape))
df_density = (df > 0).sum().sum() / np.prod(df.shape)
df_density = (df.values > 0).sum().sum() / np.prod(df.shape)
assert np.allclose(df_density, density)

def test_to_dataframe_dense(self):
Expand Down

0 comments on commit d275c28

Please sign in to comment.