spells-mtg 0.11.4__tar.gz → 0.11.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of spells-mtg might be problematic. Click here for more details.
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/PKG-INFO +1 -1
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/pyproject.toml +1 -1
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/card_data_files.py +13 -15
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/LICENSE +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/README.md +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/.ruff_cache/.gitignore +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/.ruff_cache/0.8.6/17785301476771359756 +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/.ruff_cache/CACHEDIR.TAG +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/__init__.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/cache.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/cards.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/columns.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/config.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/draft_data.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/enums.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/extension.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/external.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/filter.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/log.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/manifest.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/schema.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/utils.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/tests/__init__.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/tests/filter_test.py +0 -0
- {spells_mtg-0.11.4 → spells_mtg-0.11.5}/tests/utils_test.py +0 -0
|
@@ -28,7 +28,6 @@ ratings_col_defs = {
|
|
|
28
28
|
ColName.NAME: pl.col("name").cast(pl.String),
|
|
29
29
|
ColName.COLOR: pl.col("color").cast(pl.String),
|
|
30
30
|
ColName.RARITY: pl.col("rarity").cast(pl.String),
|
|
31
|
-
ColName.CARD_TYPE: pl.col("types").cast(pl.String),
|
|
32
31
|
ColName.IMAGE_URL: pl.col("url").cast(pl.String),
|
|
33
32
|
ColName.NUM_SEEN: pl.col("seen_count").cast(pl.Int64),
|
|
34
33
|
ColName.LAST_SEEN: pl.col("seen_count") * pl.col("avg_seen").cast(pl.Float64),
|
|
@@ -176,17 +175,16 @@ def base_ratings_df(
|
|
|
176
175
|
(pl.lit(deck_color) if deck_color != "any" else pl.lit(None)).alias(
|
|
177
176
|
ColName.MAIN_COLORS
|
|
178
177
|
).cast(pl.String)
|
|
179
|
-
)
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
)
|
|
178
|
+
).select(
|
|
179
|
+
[
|
|
180
|
+
pl.lit(set_code).alias(ColName.EXPANSION),
|
|
181
|
+
pl.lit(format).alias(ColName.EVENT_TYPE),
|
|
182
|
+
(pl.lit("Top") if player_cohort == "top" else pl.lit(None)).alias(
|
|
183
|
+
ColName.PLAYER_COHORT
|
|
184
|
+
).cast(pl.String),
|
|
185
|
+
ColName.MAIN_COLORS,
|
|
186
|
+
*[val.alias(key) for key, val in ratings_col_defs.items()],
|
|
187
|
+
]
|
|
188
|
+
))
|
|
189
|
+
|
|
190
|
+
return pl.concat(concat_list)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|