You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "westonpace (via GitHub)" <gi...@apache.org> on 2023/01/25 14:41:28 UTC
[GitHub] [arrow] westonpace commented on issue #30648: Cannot mix struct and non-struct, non-null values error when saving nested types with PyArrow
westonpace commented on issue #30648:
URL: https://github.com/apache/arrow/issues/30648#issuecomment-1403726946
Sorry, I'm not entirely sure what the type you are looking for is. Currently you are providing:
| values |
| --- |
| 24 |
| 27 |
| [1, 1] |
Columns must be homogeneous within Arrow / Parquet. If you want list-within-list you should provide
| values |
| --- |
| [24] |
| [27] |
| [1, 1] |
You can achieve this with:
```
x = pd.DataFrame({"A": [[[24], [27], [1, 1]]]})
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org