File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ def _array_dtypes(array: Any) -> tuple[str, str]:
394
394
Pandas objects) or "type" (for PyArrow objects) property to determine the dtype. If
395
395
both of these properties are not found (e.g., a list), the dtype is set to an empty
396
396
string. Then the function applies the np.ascontiguousarray function to the input
397
- object and determine the dtype of the converted np.ndarray object.
397
+ object and determines the dtype of the converted np.ndarray object.
398
398
399
399
The function returns a tuple of the two dtypes. If the output dtype is "object", it
400
400
means np.ascontiguousarray has failed to convert the input object to a NumPy dtype
@@ -404,7 +404,7 @@ def _array_dtypes(array: Any) -> tuple[str, str]:
404
404
mapping from ``string`` to ``np.str_``).
405
405
406
406
This function is not used anywhere in the project. Instead, similar codes are used
407
- in the ``vectors_to_arrays`` function. This function is kept for understand the
407
+ in the ``vectors_to_arrays`` function. This function is kept for understanding the
408
408
dtype's string representation of different array-like objects and what dtype they
409
409
are converted to by NumPy. This function is kept for understanding the dtype
410
410
conversion process and for testing purposes, since some of the dtypes may change in
You can’t perform that action at this time.
0 commit comments