We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 801c66c commit 2b0aa6bCopy full SHA for 2b0aa6b
mlxtend/frequent_patterns/fpcommon.py
@@ -31,7 +31,7 @@ def setup_fptree(df, min_support):
31
)
32
33
item_support = np.array(
34
- np.sum(np.logical_or(df.values == 1, df.values is True), axis=0)
+ np.nansum(df.values, axis=0)
35
/ (float(num_itemsets) - np.nansum(disabled, axis=0))
36
37
item_support = item_support.reshape(-1)
0 commit comments