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

Raise value error when numerical columns contain other dtypes #264

Merged
merged 11 commits into from
Dec 5, 2023

Conversation

yiweny
Copy link
Contributor

@yiweny yiweny commented Dec 3, 2023

Hit the bug when running california_house_price dataset in transformers_text.py.
I think this is because some values are numbers, others are strings, e.g. One guest bedroom etc. So the series gets interpreted as <U262 dtype.

@github-actions github-actions bot added the data label Dec 3, 2023
@yiweny yiweny self-assigned this Dec 3, 2023
Copy link

codecov bot commented Dec 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (70ae7f6) 93.28% compared to head (b78a365) 93.29%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #264      +/-   ##
==========================================
+ Coverage   93.28%   93.29%   +0.01%     
==========================================
  Files         115      115              
  Lines        5632     5641       +9     
==========================================
+ Hits         5254     5263       +9     
  Misses        378      378              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@weihua916
Copy link
Contributor

Should we raise an informative error instead?

@yiweny yiweny changed the title convert non numericals to nans Raise value error when numerical columns contain other dtypes Dec 4, 2023
torch_frame/data/stats.py Outdated Show resolved Hide resolved
@yiweny yiweny requested a review from weihua916 December 4, 2023 06:49
@yiweny yiweny merged commit 058018f into master Dec 5, 2023
10 checks passed
@yiweny yiweny deleted the yyuan/convert-non-numeric-to-nan branch December 5, 2023 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants