Skip to content

how to handle the category columns #4

Description

@chenlei76

For example, I have the following data:
X = pd.DataFrame({
"numerical_col": [1.2, 3.5, np.nan, 7.8, 9.1],
"categorical_col": ["A", "B", "B", "C", "A"],
"integer_col": [10, 20, 30, 40, 50]
})
I'm working on a numerical prediction task, but my input data includes categorical columns. Is there a quick, ready-to-use interface that I can directly utilize?

Further, if my prediction targets are categorical variables, is there a quick, out-of-the-box interface that I can use directly?
For example, I have the following data:
X = pd.DataFrame({
"numerical_col": [1.2, 3.5, np.nan, 7.8, 9.1],
"categorical_col": ["A", "B", np.nan", "C", "A"],
"integer_col": [10, 20, 30, 40, 50]
})

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions