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

dtype category error #124

Closed
rollervan opened this issue Sep 23, 2020 · 0 comments · Fixed by #127
Closed

dtype category error #124

rollervan opened this issue Sep 23, 2020 · 0 comments · Fixed by #127
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rollervan
Copy link

  • Reversible Data Transforms version: 0.2.5
  • Python version: 3.7
  • Operating System: Ubuntu

Description

I get a TypeError when fitting a categorical column.

What I Did

import pandas as pd
from rdt import HyperTransformer
df = pd.DataFrame({'a': ['a', 'b', 'c']})
df.a = df.a.astype('category')
ht = HyperTransformer()
ht.fit(df)

TypeError: Cannot interpret '0 a 1 b 2 c Name: a, dtype: category Categories (3, object): ['a', 'b', 'c']' as a data type

@csala csala self-assigned this Sep 29, 2020
@csala csala added the bug Something isn't working label Sep 29, 2020
@csala csala added this to the 0.2.6 milestone Sep 29, 2020
csala added a commit that referenced this issue Sep 29, 2020
Make HyperTrasformer work with dtype category (#124)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants