Skip to content

Bool columns are treated as categories instead of integer #61

Description

@fabien-vavrand

Bool columns are treated as categories, but should be transformed to integer instead

import pandas as pd
from aikit.transformers import NumericalEncoder
df = pd.DataFrame(data={'a': [True, True, False]})
df['a'].dtype
x = NumericalEncoder().fit_transform(df)
x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions