Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add bool, int, float, string dtype to to_dataframe#1529

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tswast merged 1 commit intomainfrommain_chelsealin_typesmapper3
Mar 23, 2023

Conversation

@chelsea-lin
Copy link
Contributor

feat: add 'bool_dtype', 'int_dtype', 'float_dtype' and 'string_dtype' to the 'to_dataframe' APIs

This change introduces 'bool_dtype', 'int_dtype', 'float_dtype' and 'string_dtype' parameters to the 'to_dataframe' APIs, so that users can choose the custom ExtensionDtype for data conversions.

Fixes#954 and#1345 🦕

@chelsea-linchelsea-lin requested review froma team ascode ownersMarch 22, 2023 16:52
@product-auto-labelproduct-auto-labelbot added size: lPull request size is large. api: bigqueryIssues related to the googleapis/python-bigquery API. labelsMar 22, 2023
@chelsea-linchelsea-linforce-pushed themain_chelsealin_typesmapper3 branch from79c6b5f tod14846eCompareMarch 22, 2023 16:58
Copy link
Contributor

@tswasttswast left a comment

Choose a reason for hiding this comment

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

Love it! Just some nits regarding how we handle the default values.

@chelsea-linchelsea-linforce-pushed themain_chelsealin_typesmapper3 branch 2 times, most recently fromc2355c4 to4b60ff1CompareMarch 22, 2023 18:59
@chelsea-linchelsea-linforce-pushed themain_chelsealin_typesmapper3 branch from4b60ff1 to25ce342CompareMarch 22, 2023 19:04
@chelsea-linchelsea-linforce-pushed themain_chelsealin_typesmapper3 branch from25ce342 to69c7271CompareMarch 22, 2023 20:21
Copy link
Contributor

@tswasttswast left a comment

Choose a reason for hiding this comment

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

Love it!

I don't think the prerelease failures could be caused by this change. Filed#1530 to investigate.

chelsea-lin reacted with thumbs up emoji
@tswasttswastenabled auto-merge (squash)March 23, 2023 15:48
@tswasttswast added kokoro:runAdd this label to force Kokoro to re-run the tests. kokoro:force-runAdd this label to force Kokoro to re-run the tests. and removed kokoro:runAdd this label to force Kokoro to re-run the tests. labelsMar 23, 2023
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelMar 23, 2023
@tswasttswast merged commit5e4465d intomainMar 23, 2023
@tswasttswast deleted the main_chelsealin_typesmapper3 branchMarch 23, 2023 18:17
abdelmegahedgoogle pushed a commit to abdelmegahedgoogle/python-bigquery that referenced this pull requestApr 17, 2023
chalmerlowe added a commit that referenced this pull requestApr 18, 2023
#1541)* bug: fixes discrepancy btwn python-api-core & bigquery re object default timeout* Fix: loosen ipywidget dependency (#1504)* fix: updates ipywidget dependency* fix: updates ipywidget version number* chore(main): release 3.6.0 (#1490)Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>* docs: Remove < 3.11 reference from README (#1502)* chore(python): upgrade gcp-releasetool in .kokoro [autoapprove] (#1508)Source-Link:googleapis/synthtool@5f2a608Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>* feat: add `connection_properties` and `create_session` to `LoadJobConfig` (#1509)* feat: added `connection_properties` and `create_session` in load job* chore(deps): update all dependencies (#1501)* chore(deps): update all dependencies* 🦉 Updates from OwlBot post-processorSeehttps://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md---------Co-authored-by: Anthonios Partheniou <partheniou@google.com>Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>* chore(deps): update all dependencies (#1513)* feat: add default_query_job_config property and property setter to BQ client (#1511)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:- [x] Make sure to open an issue as a [feature request](https://togithub.com/googleapis/python-bigquery/issues/1512) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea- [x] Ensure the tests and linter pass- [x] Code coverage does not decrease (if any source code was changed)- [x] Appropriate docs were updated (if necessary)Fixes - [feature request](https://togithub.com/googleapis/python-bigquery/issues/1512)🦕- [internal bug](https://b.corp.google.com/issues/271044948)* chore(deps): update all dependencies (#1514)* chore(deps): update dependency charset-normalizer to v3.1.0 (#1518)* chore(main): release 3.7.0 (#1507)Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>* feat: expose configuration property on CopyJob, ExtractJob, LoadJob, QueryJob (#1521)* feat: expose configuration property on CopyJob, ExtractJob, LoadJob, QueryJobNote for google-cloud-bigquery developers: This also refactors these classes sothat `_set_properties` does not modify the `_properties` dictionary in-place.Doing so was also mutating the request object, making it difficult to debugwhat request was _actually_ sent. Before this change, many tests hallucinatedthat the request was always equal to the response.* E           google.api_core.exceptions.BadRequest: 400 Clone operation with write disposition WRITE_TRUNCATE is not supported. Please try again with WRITE_EMPTY.* chore(deps): Update nox in .kokoro/requirements.in [autoapprove] (#1527)Source-Link:googleapis/synthtool@92006bbPost-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>* feat: add default LoadJobConfig to Client (#1526)* feat: add bool, int, float, string dtype to to_dataframe (#1529)* fix: loosen ipywidgets restrictions further to address ipython compatibility issues (#1531)* fix: loosen ipywidgets restrictions further to address ipython compatibility issues* include ipywidgets in prerelease deps* show all package versions* add ipykernel dependency* ipykernel in noxfile* oops* chore(main): release 3.8.0 (#1525)Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>* fix: keyerror when the load_table_from_dataframe accesses a unmapped dtype dataframe index (#1535)* feat: expose query job on dbapi cursor (#1520)Co-authored-by: Tim Swast <swast@google.com>* chore(main): release 3.9.0 (#1537)Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>* chore: update tests to be compatible with pandas 2.0 (#1538)* chore: update tests to be compatible with pandas 2.0* use StringDtype without storage argument* avoid Float64Dtype on older pandas* chore(deps): update all dependencies (#1522)* chore: updates minimum version of bqstorage (#1542)* chore: updates minimum version of bqstorage* removes unneeded test* updates linting, removes unneeded comment* updates conditional checks, comments, adds test* Removes test, adds pragma no cover* Removes test* fix linting error---------Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>Co-authored-by: Atsushi Yamamoto <yamaatsushi927@gmail.com>Co-authored-by: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>Co-authored-by: Shobhit Singh <just.shobhit@gmail.com>Co-authored-by: Mend Renovate <bot@renovateapp.com>Co-authored-by: Anthonios Partheniou <partheniou@google.com>Co-authored-by: chelsea-lin <124939984+chelsea-lin@users.noreply.github.com>Co-authored-by: Tim Swast <swast@google.com>Co-authored-by: r1b <robert.cole.jensen@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

@Neenu1995Neenu1995Awaiting requested review from Neenu1995Neenu1995 was automatically assigned from googleapis/api-bigquery

Assignees

No one assigned

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.size: lPull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Support for string[pyarrow] dtype

3 participants

@chelsea-lin@tswast@yoshi-kokoro

[8]ページ先頭

©2009-2025 Movatter.jp