Skip to content

Add the ability to process integer-type targets #2

Description

@NURx2

Currently, the target column can only be a string.
If you try to run with an integer target column, you will get the error:

Traceback (most recent call last):
  File "dataset_to_codefiles.py", line 41, in <module>
    print(code[1:-1], file=open(args.train_dir + '/' + str(i) + '|' + y_train.loc[i] + '.py', 'w+'))
TypeError: can only concatenate str (not "numpy.int64") to str

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions