Skip to content

Commit c3471cb

Browse files
committed
Remove duplicated test test_vectors_to_arrays_pandas_nan
1 parent b9b996d commit c3471cb

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pygmt/tests/test_clib_vectors_to_arrays.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@ def test_vectors_to_arrays_not_c_contiguous():
6969
_check_arrays(arrays)
7070

7171

72-
def test_vectors_to_arrays_pandas_nan():
73-
"""
74-
Test the vectors_to_arrays function with pandas Series containing NaNs.
75-
"""
76-
vectors = [pd.Series(data=[0, 4, pd.NA, 8, 6], dtype=pd.Int32Dtype())]
77-
arrays = vectors_to_arrays(vectors)
78-
npt.assert_equal(arrays[0], np.array([0, 4, np.nan, 8, 6], dtype=np.float64))
79-
assert arrays[0].dtype == np.float64
80-
_check_arrays(arrays)
81-
82-
8372
@pytest.mark.skipif(not _HAS_PYARROW, reason="pyarrow is not installed.")
8473
def test_vectors_to_arrays_pyarrow_datetime():
8574
"""

0 commit comments

Comments
 (0)