spmf-py icon indicating copy to clipboard operation
spmf-py copied to clipboard

ValueError: invalid literal for int() with base 10: '#SUP:'

Open nhamzehn opened this issue 4 years ago • 3 comments

Thank you for writing this wrapper. I have an issue when using to_pandas_dataframe() method with 'Apriori_with_hash_tree'. The following error is appear: ValueError: invalid literal for int() with base 10: '#SUP:'

from spmf import Spmf
spmf = Spmf("Apriori_with_hash_tree",
            input_filename="contextPasquier99_name.txt",
            output_filename="output.txt",
            arguments=[0.40, 30, 2])

spmf.run()
print(spmf.to_pandas_dataframe())
spmf.to_csv("output.csv")

contextPasquier99_name.txt

Regards.

nhamzehn avatar Jul 02 '21 19:07 nhamzehn

Could you please post the entire stacktrace? The to_pandas_dataframe method may assume that a different algorithm was used, which may interfere with some others. https://github.com/LoLei/spmf-py/blob/master/spmf/init.py#L142

LoLei avatar Aug 14 '21 16:08 LoLei

Hi guys. I made some changes to resolve this issue. Can I post the code here?

vanderson-rocha avatar Sep 29 '21 14:09 vanderson-rocha

@vanderson-rocha Cool, feel free to open a pull request with the changes!

LoLei avatar Sep 30 '21 05:09 LoLei