File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pandas/_libs/include/pandas/vendored/klib Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -191,9 +191,9 @@ static inline int tupleobject_cmp(PyTupleObject *a, PyTupleObject *b) {
191191 return 1 ;
192192}
193193
194- static inline int _is_pandas_NA_type (PyObject * o ) {
194+ static inline int _is_pandas_NA_type (PyObject * o ) {
195195 // TODO compare PyTypeObject* C_NA, not strings!
196- PyObject * type_name = PyType_GetName (Py_TYPE (o ));
196+ PyObject * type_name = PyType_GetName (Py_TYPE (o ));
197197 return PyUnicode_CompareWithASCIIString (type_name , "NAType" ) == 0 ;
198198}
199199
@@ -323,8 +323,8 @@ static inline khuint32_t kh_python_hash_func(PyObject *key) {
323323 // hash tuple subclasses as builtin tuples
324324 hash = tupleobject_hash ((PyTupleObject * )key );
325325 } else if (PyDict_Check (key ) || PyList_Check (key )) {
326- // Before GH 57052 was fixed, all exceptions raised from PyObject_Hash were suppressed.
327- // Existing code that relies on this behaviour is for example:
326+ // Before GH 57052 was fixed, all exceptions raised from PyObject_Hash were
327+ // suppressed. Existing code that relies on this behaviour is for example:
328328 // * _libs.hashtable.value_count_object via DataFrame.describe
329329 // * _libs.hashtable.ismember_object via Series.isin
330330 // Using hash = 0 puts all dict and list objects in the same bucket,
You can’t perform that action at this time.
0 commit comments