8000 docs: fix `bq_dataframes_template` notebook to work if partial ordering mode is enabled by tswast · Pull Request #1665 · googleapis/python-bigquery-dataframes · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@tswast
Copy link
Collaborator
@tswast tswast commented Apr 28, 2025

Previously, if you uncommented the partial ordering mode line, the notebook would fail.

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 #<issue_number_goes_here> 🦕

@tswast tswast requested review from a team as code owners April 28, 2025 20:00
@tswast tswast requested a review from ZehaoXU April 28, 2025 20:00
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Apr 28, 2025
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. label Apr 28, 2025
@tswast tswast requested review from shobsi and removed request for ZehaoXU April 28, 2025 20:00
@tswast
Copy link
Collaborator Author
tswast commented Apr 28, 2025

A good follow-up to this would be to run this notebook in both modes.

Edit: filed internal issue 414424250 to track this.

@@ -114,7 +114,7 @@
},
Copy link
Collaborator Author
@tswast tswast Apr 28, 2025

Choose a reason for hiding this comment

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

Line #1.    df.sort_values("body_mass_g").plot(title="Numeric features", logy=True)

Might need a reset_index() call in strict ordering mode for the sort to make any difference there.


Reply via ReviewNB

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added reset_index in latest commit.

@tswast tswast merged commit f442e7a into main Apr 28, 2025
24 checks passed
@tswast tswast deleted the tswast-getting-started-notebook-tests branch April 28, 2025 22:55
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: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0