You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
367 B

import numpy as np
import pandas as pd
object_pyarrow_numpy = ("object", "string[pyarrow_numpy]")
def _convert_na_value(ser, expected):
if ser.dtype != object:
if ser.dtype.storage == "pyarrow_numpy":
expected = expected.fillna(np.nan)
else:
# GH#18463
expected = expected.fillna(pd.NA)
return expected