Closed vishnureddy17 closed 5 years ago
Thanks, definitely looks like a bug. Will fix that some time next week and add a unit test for that.
@rasbt I can fix this weekend if you don't get to it. Let me know
@harenbergsd if you could fix that, that would also be nice :). I am currently traveling/attending a conference and things are a bit hectic
Sure I got it. Just wouldn't be right to make you fix my bug feature :)
Actually it looks like I already caught this when I added fpmax.
The issue in older version was: https://github.com/rasbt/mlxtend/blob/8dcb6e7251428d20878ae108c3c3247b0092befa/mlxtend/frequent_patterns/fpgrowth.py#L159-L164
Current code is casting to string: https://github.com/rasbt/mlxtend/blob/87cfbf95ba91b5629e546d741a1eaeece8daccc6/mlxtend/frequent_patterns/fpcommon.py#L155-L161
Should be good to go when @vishnureddy17 updates to latest dev version.
Sure I got it. Just wouldn't be right to make you fix my bug feature :)
haha ok, fair enough. Thanks!
Actually it looks like I already caught this when I added fpmax. The issue in older version was:
Oh yeah, I just double-checked empirically, and both
fpmax(df.astype(int), min_support=0.6, verbose=1)
fgrowth(df.astype(int), min_support=0.6, verbose=1)
run without issue. I guess we can close this then.
@vishnureddy17 : After updating to the latest dev version, please let us know in case the problem still persists.
When using FPGrowth on itemsets with integer elements, a TypeError is raised when verbose mode is enabled:
TypeError Traceback (most recent call last)