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 Series.dt.normalize #483

Merged
merged 11 commits into from
Mar 21, 2024
Merged

Conversation

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

Henry J Solberg and others added 5 commits March 20, 2024 16:31
@milkshakeiii milkshakeiii requested review from a team as code owners March 20, 2024 20:38
@milkshakeiii milkshakeiii requested a review from junyazhang March 20, 2024 20:38
@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 20, 2024
@milkshakeiii milkshakeiii removed the request for review from junyazhang March 20, 2024 20:41
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.

lgtm

def test_dt_normalize(scalars_dfs, col_name):
scalars_df, scalars_pandas_df = scalars_dfs
bf_series: bigframes.series.Series = scalars_df[col_name]
bf_result = bf_series.dt.normalize().to_pandas()
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't define bf_series, but just call scalars_df[col_name].dt.normalize().to_pandas(). Would that work also?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, bf_series is unnecessary. Fixed, thanks!

@milkshakeiii milkshakeiii added the automerge Merge the pull request once unit tests and other checks pass. label Mar 21, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit 0bf1e91 into main Mar 21, 2024
14 of 15 checks passed
@gcf-merge-on-green gcf-merge-on-green bot deleted the b329510466-dt-normalize branch March 21, 2024 06:20
@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 21, 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.

3 participants