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

Task: Data Transform (Categorical Value Classification) #35

Closed
walljcg opened this issue Jun 17, 2024 · 0 comments · Fixed by #52
Closed

Task: Data Transform (Categorical Value Classification) #35

walljcg opened this issue Jun 17, 2024 · 0 comments · Fixed by #52
Assignees

Comments

@walljcg
Copy link

walljcg commented Jun 17, 2024

We need an ETL task that allows a user to classify categorical values on a dataframe. If there are as many unique classes as unique categorical values then this is a simple mapping of one value to another. Otherwise if the classes are less then there needs to be some logic that specifies the mapping. E.g., if x='navy blue' or x='light blue': y='blue'.

This function should work for either numeric or text data types.

Parameter inputs will be:

  1. Input column name
  2. a dict that provides the mapping of the values of the column to the new values. If input values do not appear in the remapping dict then then are left untouched.
  3. Output column name (if it's the same as the input name then the input column is overwritten with the re-mapped values).
@Yun-Wu Yun-Wu linked a pull request Jun 28, 2024 that will close this issue
@Yun-Wu Yun-Wu closed this as completed in #52 Jul 5, 2024
@walljcg walljcg changed the title Task: ETL - Categorical Value Classification Task: Data Transform (Categorical Value Classification) Jul 16, 2024
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

Successfully merging a pull request may close this issue.

3 participants