We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816ca8b commit f68c4eaCopy full SHA for f68c4ea
1 file changed
intbot/core/analysis/products.py
@@ -106,14 +106,14 @@ def flat_product_data(products: list[Product]) -> pl.DataFrame:
106
)
107
108
109
- schema = {
110
- "product_id": pl.Int64,
111
- "variation_id": pl.Int64,
112
- "product_name": pl.String,
113
- "type": pl.String,
114
- "variant": pl.String,
+ schema = pl.Schema({
+ "product_id": pl.Int64(),
+ "variation_id": pl.Int64(),
+ "product_name": pl.String(),
+ "type": pl.String(),
+ "variant": pl.String(),
115
"price": pl.Decimal(precision=10, scale=2),
116
- }
+ })
117
return pl.DataFrame(rows, schema=schema)
118
119
0 commit comments