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 @@ -360,7 +360,7 @@ def _array_dtypes(array: Any) -> tuple[str, str]:
360
360
Pandas objects) or "type" (for PyArrow objects) property to determine the dtype. If
361
361
both of these properties are not found (e.g., a list), the dtype is set to an empty
362
362
string. Then the function applies the np.ascontiguousarray function to the input
363
- object and determine the dtype of the converted np.ndarray object.
363
+ object and determines the dtype of the converted np.ndarray object.
364
364
365
365
The function returns a tuple of the two dtypes. If the output dtype is "object", it
366
366
means np.ascontiguousarray has failed to convert the input object to a NumPy dtype
@@ -370,7 +370,7 @@ def _array_dtypes(array: Any) -> tuple[str, str]:
370
370
mapping from ``string`` to ``np.str_``).
371
371
372
372
This function is not used anywhere in the project. Instead, similar codes are used
373
- in the ``vectors_to_arrays`` function. This function is kept for understand the
373
+ in the ``vectors_to_arrays`` function. This function is kept for understanding the
374
374
dtype's string representation of different array-like objects and what dtype they
375
375
are converted to by NumPy. This function is kept for understanding the dtype
376
376
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