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 d2aeeff commit 73a95d2Copy full SHA for 73a95d2
pandas/core/arrays/arrow/array.py
@@ -562,12 +562,8 @@ def _box_pa_array(
562
return pa_array
563
564
mask = None
565
- if getattr(value, "dtype", None) is None or value.dtype.kind not in "mMf":
566
- try:
567
- arr_value = np.asarray(value)
568
- except ValueError:
569
- # e.g. list dtype with mixed-length lists
570
- 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)
571
# similar to isna(value) but exclude NaN, NaT, nat-like, nan-like
572
mask = is_pdna_or_none(arr_value)
573
0 commit comments