In the example below, you can see I create id with Uint16, however all the models after using rename, with_fields , select & drop lose their field definitions that were provided in pt.Field.
class Product(pt.Model):
id: int = pt.Field(unique=True, dtype=pl.UInt16)
row_id: int
print(Product.dtypes)
In the example below, you can see I create id with Uint16, however all the models after using
rename
,with_fields
,select
&drop
lose their field definitions that were provided in pt.Field.{'id': UInt16, 'row_id': Int64}
With_fields
Rename
Drop
@JakobGM @thomasaarholt