MCPcopy Create free account
hub / github.com/apache/arrow / PyDecimal_ISNAN

Function PyDecimal_ISNAN

python/pyarrow/src/arrow/python/decimal.cc:219–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219bool PyDecimal_ISNAN(PyObject* obj) {
220 ARROW_DCHECK(PyDecimal_Check(obj)) << "obj is not an instance of decimal.Decimal";
221 OwnedRef is_nan(
222 PyObject_CallMethod(obj, const_cast<char*>("is_nan"), const_cast<char*>("")));
223 return PyObject_IsTrue(is_nan.obj()) == 1;
224}
225
226DecimalMetadata::DecimalMetadata()
227 : DecimalMetadata(std::numeric_limits<int32_t>::min(),

Callers 2

PandasObjectIsNullFunction · 0.85
UpdateMethod · 0.85

Calls 1

PyDecimal_CheckFunction · 0.85

Tested by

no test coverage detected