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

feat: support dataframe.cov #498

Merged
merged 4 commits into from
Mar 22, 2024
Merged

feat: support dataframe.cov #498

merged 4 commits into from
Mar 22, 2024

Conversation

Genesis929
Copy link
Collaborator

@Genesis929 Genesis929 commented Mar 22, 2024

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Document:
https://screenshot.googleplex.com/9egi7MsNj2uWHkH

Fixes #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Mar 22, 2024
@Genesis929 Genesis929 requested a review from chelsea-lin March 22, 2024 21:06
@chelsea-lin
Copy link
Contributor

"""
if len(self.value_columns) > 30:
raise NotImplementedError(
f"Only work with dataframes containing fewer than 30 columns. Current: {len(self.columns)}. {constants.FEEDBACK_LINK}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please help to double check if error message matches with the code? Does "fewer than 30 columns" include 30?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@Genesis929 Genesis929 marked this pull request as ready for review March 22, 2024 22:18
@Genesis929 Genesis929 requested review from a team as code owners March 22, 2024 22:18
@Genesis929 Genesis929 requested a review from chelsea-lin March 22, 2024 22:18
@Genesis929 Genesis929 added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 22, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 22, 2024
Copy link
Contributor

@chelsea-lin chelsea-lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments. Overall LGTM


def cov(self, *, numeric_only: bool = False) -> DataFrame:
if not numeric_only:
frame = self._raise_on_non_numeric("corr")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"cov"

@Genesis929 Genesis929 added the automerge Merge the pull request once unit tests and other checks pass. label Mar 22, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit c4beafd into main Mar 22, 2024
15 of 16 checks passed
@gcf-merge-on-green gcf-merge-on-green bot deleted the cov-huanc branch March 22, 2024 23:58
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants