Skip to content

Commit 2b0aa6b

Browse files
committed
Fixing memory usage increase
1 parent 801c66c commit 2b0aa6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlxtend/frequent_patterns/fpcommon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def setup_fptree(df, min_support):
3131
)
3232

3333
item_support = np.array(
34-
np.sum(np.logical_or(df.values == 1, df.values is True), axis=0)
34+
np.nansum(df.values, axis=0)
3535
/ (float(num_itemsets) - np.nansum(disabled, axis=0))
3636
)
3737
item_support = item_support.reshape(-1)

0 commit comments

Comments
 (0)