feat(db-dtypes): support pandas 3.0 (#17177) · googleapis/google-cloud-python@2086b34 · GitHub
Skip to content

Commit 2086b34

Browse files
authored
feat(db-dtypes): support pandas 3.0 (#17177)
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](https://github.com/googleapis/google-cloud-python/issues) 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 #15509 🦕
1 parent 2408166 commit 2086b34

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions

packages/db-dtypes/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"numpy >= 1.24.0, <= 2.2.6 ; python_version == '3.10'",
3434
"numpy >= 1.24.0 ; python_version != '3.10'",
3535
"packaging >= 24.2.0",
36-
"pandas >= 1.5.3, < 3.0.0",
36+
"pandas >= 1.5.3, < 4.0.0",
3737
"pyarrow >= 13.0.0",
3838
]
3939

packages/db-dtypes/tests/compliance/json/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ def data_missing_for_sorting():
8383
return JSONArray._from_sequence([json.dumps({"b": 1}), None, json.dumps({"a": 4})])
8484

8585

86+
@pytest.fixture
87+
def data_for_sorting():
88+
return JSONArray._from_sequence(
89+
[json.dumps({"b": 1}), json.dumps({"c": 4}), json.dumps({"a": 2})]
90+
)
91+
92+
8693
@pytest.fixture
8794
def na_cmp():
8895
"""

packages/db-dtypes/tests/compliance/json/test_json_compliance.py

Lines changed: 12 additions & 0 deletions

0 commit comments

Comments
 (0)