Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #204 from scikit-hep/issue-203
Browse files Browse the repository at this point in the history
Fixes #203.
  • Loading branch information
jpivarski authored Oct 8, 2019
2 parents bb69702 + 4504c4c commit 22ff4b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ def test_arrow_nonnullable_table(self):
x = pyarrow.array([1, 2, 3])
y = pyarrow.array([1.1, 2.2, 3.3])
table = pyarrow.Table.from_arrays([x], ["x"])
table2 = table.add_column(1, pyarrow.column(pyarrow.field("y", y.type, False), numpy.array([1.1, 2.2, 3.3])))
if hasattr(pyarrow, "column"):
table2 = table.add_column(1, pyarrow.column(pyarrow.field("y", y.type, False), numpy.array([1.1, 2.2, 3.3])))
else:
table2 = table.add_column(1, "y", y)
assert awkward.arrow.fromarrow(table2).tolist() == [{"x": 1, "y": 1.1}, {"x": 2, "y": 2.2}, {"x": 3, "y": 3.3}]

def test_arrow_trailing_zero(self):
Expand Down

0 comments on commit 22ff4b9

Please sign in to comment.