8000 fix: df.loc with the 2nd input as bigframes boolean Series by GarrettWu · Pull Request #789 · googleapis/python-bigquery-dataframes · GitHub
[go: up one dir, main page]

Skip to content

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
@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

0