Skip to content

Commit

Permalink
Remove duplicated test test_vectors_to_arrays_pandas_nan
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Nov 6, 2024
1 parent 26cacc5 commit eceff7f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pygmt/tests/test_clib_vectors_to_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@ def test_vectors_to_arrays_not_c_contiguous():
_check_arrays(arrays)


def test_vectors_to_arrays_pandas_nan():
"""
Test the vectors_to_arrays function with pandas Series containing NaNs.
"""
vectors = [pd.Series(data=[0, 4, pd.NA, 8, 6], dtype=pd.Int32Dtype())]
arrays = vectors_to_arrays(vectors)
npt.assert_equal(arrays[0], np.array([0, 4, np.nan, 8, 6], dtype=np.float64))
assert arrays[0].dtype == np.float64
_check_arrays(arrays)


@pytest.mark.skipif(not _HAS_PYARROW, reason="pyarrow is not installed.")
def test_vectors_to_arrays_pyarrow_datetime():
"""
Expand Down

0 comments on commit eceff7f

Please sign in to comment.