How many decimal places for support in the result set of fpgrowth? #1097
-
As far as I can say, the support value in the result set (fpgrowth) is returning a maximum of 6 decimal places. Is there any posibility to increase the number of decimal places (to 8 or 10). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
TLDRYou can set the The detailsThere is no round operation in source code: mlxtend/mlxtend/frequent_patterns/fpcommon.py Lines 64 to 78 in 63a2655 So it's just the display setting of pandas, you check pandas doc here. |
Beta Was this translation helpful? Give feedback.
TLDR
You can set the
display.precision
bypd.set_option("display.precision", 8)
before you print the DataFrame and you will get what you need.The details
There is no round operation in source code:
mlxtend/mlxtend/frequent_patterns/fpcommon.py
Lines 64 to 78 in 63a2655