Skip to content

Avoid duplicated generated code when splitting dataset #50

@felipealencar

Description

@felipealencar

When a user executes the Split Data feature more than once, the code generation repeats the X.sample and X.drop lines. This behavior might not be desired in the final Python code.

Possible solutions:

  1. Implement an application state to check if code was generated with the split method already.
  2. Implement a find and update method at the CodeBlock class.
  3. Simply clear the CodeBlock state after each code generation.

Example:
Captura de Tela 2022-10-09 às 01 17 02

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions