We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3bb0b6 commit 599f775Copy full SHA for 599f775
pandas/core/arrays/arrow/array.py
@@ -564,12 +564,8 @@ def _box_pa_array(
564
return pa_array
565
566
mask = None
567
- if getattr(value, "dtype", None) is None or value.dtype.kind not in "mMf":
568
- try:
569
- arr_value = np.asarray(value)
570
- except ValueError:
571
- # e.g. list dtype with mixed-length lists
572
- arr_value = np.asarray(value, dtype=object)
+ if getattr(value, "dtype", None) is None or value.dtype.kind not in "iumMf":
+ arr_value = np.asarray(value, dtype=object)
573
# similar to isna(value) but exclude NaN, NaT, nat-like, nan-like
574
mask = is_pdna_or_none(arr_value)
575
0 commit comments