jorisvandenbossche opened a new issue, #42012:
URL: https://github.com/apache/arrow/issues/42012

   We have already have a `Schema.with_metadata()` method, and for `Field` we 
have `with_metadata`/`with_name`/`with_type`/`with_nullable` to create new 
fields from an existing one.
   
   If you edit such a field, it would also be nice to have an easy way to 
update the Schema with that updated field, so that you could do something like 
this:
   
   ```python
   idx = 0
   new_schema = schema.with_field(idx, schema.field(idx).with_nullable(False))
   ```
   
   The `with_..` mimics the other methods, although in this case it takes the 
index of the field to set, so a `set_field()` method might be a more fitting 
name (and then mimics `Table.set_column`)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to