Here is a central issue tracking the data types the private _to_numpy function supports. We will add tests for these data types in a series of PRs. Please note that it doesn't mean that PyGMT support these data types.
Numeric Dtypes
Python built-in types clib.converison._to_numpy: Add tests for numpy arrays of numpy numeric dtypes #3583
NumPy array: clib.converison._to_numpy: Add tests for numpy arrays of numpy numeric dtypes #3583
int8, int16, int32, int64, longlong
uint8, uint16, uint32, uint64, ulonglong
float16, float32, float64, longdouble
complex64, complex128, clongdouble
pandas.Series with NumPy dtypes clib.converison._to_numpy: Add tests for numpy arrays of numpy numeric dtypes #3583
int8, int16, int32, int64, longlong
uint8, uint16, uint32, uint64, ulonglong
float16, float32, float64, longdouble
complex64, complex128, clongdouble
pandas.Series with pandas/PyArrow dtypes clib.converison._to_numpy: Add tests for pandas.Series with pandas numeric dtypes #3584
Int8, Int16, Int32, Int64
UInt8, UInt16, UInt32, UInt64
Float32, Float64
int8[pyarrow], int16[pyarrow], int32[pyarrow], int64[pyarrow]
uint8[pyarrow], uint16[pyarrow], uint32[pyarrow], uint64[pyarrow]
float16[pyarrow], float32[pyarrow], float64[pyarrow]
pyarrow.array with PyArrow dtypes clib.conversion._to_numpy: Add tests for pyarrow.array with pyarrow numeric types #3599
int8, int16, int32, int64
uint8, uint16, uint32, uint64
float16, float32, float64
String Dtypes
Datetime dtypes
Python sequence of datetime-like objects: clib.conversion._to_numpy: Add tests for Python sequence of datetime-like objects #3758
NumPy datetime64 clib.conversion._to_numpy: Add tests for numpy array with np.datetime64 dtypes #3687
date unit: Y, M, W, D
time unit: h, m, s, ms, us, ns
time unit: ps, fs, as
pandas.Series
pyarrow.array
Timedelta dtypes
Bool
Here is a central issue tracking the data types the private
_to_numpyfunction supports. We will add tests for these data types in a series of PRs. Please note that it doesn't mean that PyGMT support these data types.Numeric Dtypes
String Dtypes
Datetime dtypes
datetime64clib.conversion._to_numpy: Add tests for numpy array with np.datetime64 dtypes #3687np.datetime64clib.conversion._to_numpy: Add tests for pandas.Series with datetime dtypes #3670pandas.DatetimeTZDtypeclib.conversion._to_numpy: Add tests for pandas.Series with datetime dtypes #3670pa.timestampclib.conversion._to_numpy: Add tests for pandas.Series with datetime dtypes #3670pa.date32/date32[D][pyarrow]clib.conversion._to_numpy: Add tests for pandas.Series with pyarrow date32/date64 types #3610pa.date64/date64[ms][pyarrow]clib.conversion._to_numpy: Add tests for pandas.Series with pyarrow date32/date64 types #3610pa.time32pa.time64Timedelta dtypes
Bool