LoLei / LoLei/spmf-py

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

Open
#4 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
70
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the supplied Apriori_with_hash_tree example with contextPasquier99_name.txt and start at the to_pandas_dataframe() conversion path. Trace how the algorithm output containing '#SUP:' is parsed; done means the example converts to a pandas DataFrame without the reported ValueError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.