You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "agagrins (via GitHub)" <gi...@apache.org> on 2023/03/27 13:27:29 UTC
[GitHub] [arrow] agagrins commented on issue #34739: [Python] Cannot append nullable string columns to table
agagrins commented on issue #34739:
URL: https://github.com/apache/arrow/issues/34739#issuecomment-1485091246
Ok, great explanation!
My first thought was then "But what happens if you only have NULL values at the moment?"
The answer is that you can pre-create the chunked array
```
table = table.append_column(pyarrow.field("c", pyarrow.string(), nullable=True), pyarrow.chunked_array([[None]], type=pyarrow.string()))
```
--
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