Skip to content

Commit eef094d

Browse files
committed
Require numpy v2
Fixes #193
1 parent d12ec6e commit eef094d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
dynamic = ["version"]
1919
requires-python = ">=3.9"
2020
dependencies = [
21-
"numpy",
21+
"numpy>=2",
2222
# We use internal pd._libs.missing and experimental ArrowExtensionArray
2323
"pandas>=2.2,<2.3",
2424
"pyarrow>=15",

tests/nested_pandas/nestedframe/test_nestedframe.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,3 +1197,11 @@ def test_access_non_existing_column():
11971197
nf = NestedFrame()
11981198
with pytest.raises(KeyError):
11991199
_ = nf["non_existing_column"]
1200+
1201+
1202+
def test_issue193():
1203+
"""https://github.com/lincc-frameworks/nested-pandas/issues/193"""
1204+
ndf = generate_data(3, 3)
1205+
ndf.query("nested.flux / nested.t > 0")
1206+
# This failed with numpy 1 with:
1207+
# TypeError: Cannot interpret 'double[pyarrow]' as a data type

0 commit comments

Comments
 (0)