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

Fix bucketing types #719

Merged
merged 2 commits into from
May 27, 2021
Merged

Fix bucketing types #719

merged 2 commits into from
May 27, 2021

Conversation

maxispeicher
Copy link
Contributor

Description of changes:
During testing some bucketing I've noticed a problem when there are combined datatypes in some rows which cause dtype casting during df.apply. As during df.apply each row is handled as a separate Series and for example there is a float and a int column, the dtype of the row series is float and the Exception is raised.

To prevent this issue the fix according to https://stackoverflow.com/a/47145613/10608063 was added which changes the dtype to object before apply.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jaidisido
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-sDRE8Pq0duHT
  • Commit ID: bc0213b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@maxispeicher maxispeicher marked this pull request as ready for review May 27, 2021 09:38
@jaidisido
Copy link
Contributor

Nice catch, thank you

@jaidisido jaidisido merged commit f155691 into aws:main May 27, 2021
@maxispeicher maxispeicher deleted the fix_bucketing_types branch July 13, 2021 08:04
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.

None yet

2 participants