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

Bump to pandas 2.2.3 #1013

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ numpy = ">= 1.23.5"

[tool.poetry.group.dev.dependencies]
mypy = "1.10.1"
pandas = "2.2.2"
pandas = "2.2.3"
pyarrow = ">=10.0.1"
pytest = ">=7.1.2"
pyright = ">= 1.1.374"
pyright = ">= 1.1.383"
poethepoet = ">=0.16.5"
loguru = ">=0.6.0"
typing-extensions = ">=4.4.0"
Expand Down
35 changes: 3 additions & 32 deletions tests/test_utility.py
Original file line number Diff line number Diff line change
@@ -1,42 +1,13 @@
from contextlib import (
AbstractContextManager,
nullcontext,
)
import platform

import pandas as pd
import pytest
from typing_extensions import assert_type

from tests import (
NUMPY20,
PD_LTE_22,
check,
pytest_warns_bounded,
)
from tests import check


def test_show_version():
"""Test show_versions method types with split case for pandas and python versions."""
if PD_LTE_22:
context: AbstractContextManager = nullcontext()
# distutils warning is only raised with pandas<3.0.0
if NUMPY20: # https://github.com/PyTables/PyTables/issues/1172
context = pytest.raises(ValueError)
with (
pytest_warns_bounded(
UserWarning,
match="Setuptools is replacing distutils",
upper="3.11.99",
version_str=platform.python_version(),
),
context,
):
check(assert_type(pd.show_versions(True), None), type(None))
check(assert_type(pd.show_versions(False), None), type(None))
else:
check(assert_type(pd.show_versions(True), None), type(None))
check(assert_type(pd.show_versions(False), None), type(None))
check(assert_type(pd.show_versions(True), None), type(None))
check(assert_type(pd.show_versions(False), None), type(None))


def test_dummies():
Expand Down
Loading