pixano.data.fields
Fields(field_dict)
Bases: BaseModel
Dataset PyArrow fields as string dictionary
Attributes:
Name | Type | Description |
---|---|---|
field_dict |
dict[str, str]
|
PyArrow fields as string dictionary |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
field_dict
|
dict[str, str]
|
PyArrow fields as string dictionary |
required |
Source code in pixano/data/fields.py
to_schema()
Convert Fields string dictionary to PyArrow schema
Returns:
Type | Description |
---|---|
schema
|
Fields as PyArrow schema |
Source code in pixano/data/fields.py
field_to_pyarrow(field)
Return PyArrpw type from string field
Parameters:
Name | Type | Description | Default |
---|---|---|---|
field
|
str
|
String field |
required |
Returns:
Type | Description |
---|---|
DataType
|
PyArrow type |
Source code in pixano/data/fields.py
field_to_python(field)
Return Python type from string field
Parameters:
Name | Type | Description | Default |
---|---|---|---|
field
|
str
|
String field |
required |
Returns:
Type | Description |
---|---|
type
|
Python type |