-
Notifications
You must be signed in to change notification settings - Fork 162
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
<Outdated> Float column fix for categorical data during precession calculation #1096
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please sign the CLA @SchadtJ. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR will also need to go into dev
branch and not main
per contribution docs here.
@@ -305,7 +305,10 @@ def _get_float_precision( | |||
|
|||
# length of sampled cells after all punctuation removed | |||
len_per_float = ( | |||
df_series_clean.sample(sample_size).replace(to_replace=r, value="").map(len) | |||
df_series_clean.sample(sample_size) | |||
.astype(object) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is not having this causing a particular issue? It's not clear to me right now why the addition? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @taylorfturner - thank you for the comments. Signed SLA / will fork off dev in the future.
I'm planning to close this PR. I had originally intended this to be a fix for this issue. However, I believe this PR solved the underlying issue.
This PR can be ignored. Underlying problem was fixed in this PR
In the float column precession calculation, categorical data with trailing zeros were causing issues, because the values were being trimmed with regex and not recognized as labels anymore.