Skip to content

how to handle the category columns #4

@chenlei76

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!

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