Skip to content

fix: df.loc with the 2nd input as bigframes boolean Series #789

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

Merged
merged 5 commits into from
Jun 14, 2024

Conversation

GarrettWu
Copy link
Contributor

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)

Fixes #347032818 🦕

@GarrettWu GarrettWu self-assigned this Jun 13, 2024
@GarrettWu GarrettWu requested review from a team as code owners June 13, 2024 19:57
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Jun 13, 2024
@GarrettWu GarrettWu requested review from tswast and removed request for TrevorBergeron June 13, 2024 20:21
scalars_df_index, scalars_pandas_df_index
):
bf_result = scalars_df_index.loc[
:, series.Series(scalars_df_index.dtypes == "Int64")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we do a test that derives from scalars_df_index instead? I'm a little worried about index alignment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. But it identifies another problem b/347072677. May need SQL to fix.

@GarrettWu GarrettWu requested a review from tswast June 13, 2024 21:21
@GarrettWu GarrettWu merged commit a4ac82e into main Jun 14, 2024
21 checks passed
@GarrettWu GarrettWu deleted the garrettwu-fix branch June 14, 2024 17:31
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: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants