Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add endpoint for variable transform/add new column #148

Open
raprasad opened this issue May 23, 2018 · 1 comment
Open

add endpoint for variable transform/add new column #148

raprasad opened this issue May 23, 2018 · 1 comment
Assignees

Comments

@raprasad
Copy link
Contributor

raprasad commented May 23, 2018

This is a substitute for the R transform on the Dallas version of TwoRavens

For example, if I want to transform a variable, eg log(x), I’ll need to compute log(x), get back the new variable, preprocess it individually, and embed that metadata in the json

example input:

  • preprocess id
  • existing variable name
  • type of transform
    • have predefined transforms. e.g. users passes name of operation

example output:

  • full preprocess file with the new variable included
@raprasad
Copy link
Contributor Author

raprasad commented Jun 1, 2018

example scenario: square values in the at_bats column

  • open at_bats column in a dataframe. e.g. open source file but only 1 column
  • use pandas for transform; to square the column
  • send dataframe for processing
    • this is a new PreprocessJob!
  • combine the metadata from the new PreprocessJob and original PreprocessJob metadata file
    • update:
      • dataset: number of variables
      • add new variable to variables section
      • add new variable to variable_display section
  • delete the PreprocessJob for one column

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants