Skip to content

Commit

Permalink
[Python] ListView pandas tests should use np.nan instead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
danepitkin committed Apr 5, 2024
1 parent 83359d6 commit 6c1be46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyarrow/tests/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2571,7 +2571,7 @@ def test_list_view_to_pandas_with_null_values(self, klass):
)

actual = arr.to_pandas()
expected = pd.Series([[1, None], [], None])
expected = pd.Series([[1, np.nan], [], None])

tm.assert_series_equal(actual, expected)

Expand All @@ -2593,7 +2593,7 @@ def test_list_view_to_pandas_multiple_chunks(self, klass):
arr = pa.chunked_array([arr1, arr2])

actual = arr.to_pandas()
expected = pd.Series([[3, 4], [2, 3], [1, 2], [5, 6, 7], [6, 7, None], None])
expected = pd.Series([[3, 4], [2, 3], [1, 2], [5, 6, 7], [6, 7, np.nan], None])

tm.assert_series_equal(actual, expected)

Expand Down

0 comments on commit 6c1be46

Please sign in to comment.