(self, maps_as_pydicts: Optional[Literal["lossy", "strict"]] = None)
| 831 | return numpy_arr |
| 832 | |
| 833 | def to_pylist(self, maps_as_pydicts: Optional[Literal["lossy", "strict"]] = None): |
| 834 | zero_copy_only = _is_zero_copy_only(self.storage.type, unnest=True) |
| 835 | numpy_arr = self.to_numpy(zero_copy_only=zero_copy_only) |
| 836 | if self.type.shape[0] is None and numpy_arr.dtype == object: |
| 837 | return [arr.tolist() for arr in numpy_arr.tolist()] |
| 838 | else: |
| 839 | return numpy_arr.tolist() |
| 840 | |
| 841 | |
| 842 | class PandasArrayExtensionDtype(PandasExtensionDtype): |
no test coverage detected