jorisvandenbossche commented on code in PR #12783:
URL: https://github.com/apache/arrow/pull/12783#discussion_r845191617
##########
python/pyarrow/types.pxi:
##########
@@ -1446,11 +1506,43 @@ cdef class Schema(_Weakrefable):
Returns
-------
list of DataType
+
+ Examples
+ --------
+ >>> import pyarrow as pa
+ >>> schema = pa.schema([
+ ... pa.field('n_legs', pa.int64()),
+ ... pa.field('animals', pa.string())])
+
+ Get the types of the schema's fields:
+
+ >>> schema.types
+ [DataType(int64), DataType(string)]
"""
return [field.type for field in self]
@property
def metadata(self):
+ """
+ The schema's field metadata.
Review Comment:
```suggestion
The schema's metadata.
```
? (a field can also have metadata, but here it is the schema's metadata I
think
--
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]