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

<Outdated> Float column fix for categorical data during precession calculation #1096

Closed
wants to merge 1 commit into from

Conversation

SchadtJ
Copy link
Contributor

@SchadtJ SchadtJ commented Feb 19, 2024

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.

@SchadtJ SchadtJ requested a review from a team as a code owner February 19, 2024 19:09
@CLAassistant
Copy link

CLAassistant commented Feb 19, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@taylorfturner taylorfturner left a 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!

Copy link
Contributor

@taylorfturner taylorfturner left a 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)
Copy link
Contributor

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!

Copy link
Contributor Author

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.

@SchadtJ SchadtJ closed this Feb 23, 2024
@SchadtJ SchadtJ changed the title Temp <Outdated> Float column precession calculation fix for categorical data Feb 23, 2024
@SchadtJ SchadtJ changed the title <Outdated> Float column precession calculation fix for categorical data <Outdated> Float column fix for categorical data during precession calculation Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants