spells-mtg 0.11.4__py3-none-any.whl → 0.11.5__py3-none-any.whl

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/card_data_files.py CHANGED
@@ -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
- df = pl.concat(concat_list)
181
-
182
- return df.select(
183
- [
184
- pl.lit(set_code).alias(ColName.EXPANSION),
185
- pl.lit(format).alias(ColName.EVENT_TYPE),
186
- (pl.lit("Top") if player_cohort == "top" else pl.lit(None)).alias(
187
- ColName.PLAYER_COHORT
188
- ).cast(pl.String),
189
- ColName.MAIN_COLORS,
190
- *[val.alias(key) for key, val in ratings_col_defs.items()],
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.11.4
3
+ Version: 0.11.5
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
@@ -3,7 +3,7 @@ spells/.ruff_cache/0.8.6/17785301476771359756,sha256=gPYLG8psuOSo37IefLzTu5wgRrb
3
3
  spells/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-IcOZIOuIZf5FrYw5Pk-Ma4,43
4
4
  spells/__init__.py,sha256=0pnh2NLn9FrNKncE9-tBsighp3e8YAsN--_ovUpgWGs,333
5
5
  spells/cache.py,sha256=6cl0q62erR3LCANPSfxG5-J7JQfLwNdWjzlBpfiL4IE,7174
6
- spells/card_data_files.py,sha256=yaZzXKJgrsg__Kov7eKLosx4oyexMClV3a7Tfxdlk3w,6433
6
+ spells/card_data_files.py,sha256=mqPLJD-wBx_4rn-jyVoa2i-f8-uwyM6R7JACvBVu3Gg,6404
7
7
  spells/cards.py,sha256=6stFPhJOzHqvQnkSv9cDeylRa_7L9Y8sOaowiZhzz6I,4174
8
8
  spells/columns.py,sha256=s_PYyg2QaRL6kLWFNKCBEfbMF0x7O7-Yd9SeG1ttYL4,18206
9
9
  spells/config.py,sha256=zpRUZ-6JKALE149L0yfeD1AgqKPaVBGHfD_TdHi-jqE,235
@@ -16,8 +16,8 @@ spells/log.py,sha256=3avmg65hru8K9npKLvPp1wWWxq-hoEYDUCbxqhPkKUw,2175
16
16
  spells/manifest.py,sha256=ExWVk17BRw615UmvrV817xwz457yfTNdNMNE_M00aEg,8338
17
17
  spells/schema.py,sha256=DbMvV8PIThJTp0Xzp_XIorlW6JhE1ud1kWRGf5SQ4_c,6406
18
18
  spells/utils.py,sha256=IO3brrXVvZla0LRTEB5v6NgGqZb_rYA46XtKBURGMNk,1944
19
- spells_mtg-0.11.4.dist-info/METADATA,sha256=4U7yb5Kz5Pku2AD8BjZe9WKbvneYwK0NtqRI7ydA8GQ,47369
20
- spells_mtg-0.11.4.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
21
- spells_mtg-0.11.4.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
22
- spells_mtg-0.11.4.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
23
- spells_mtg-0.11.4.dist-info/RECORD,,
19
+ spells_mtg-0.11.5.dist-info/METADATA,sha256=A-aXPXsZKoJHsDzge8xRtvskSzBx_aepgiE7L6-Zqyw,47369
20
+ spells_mtg-0.11.5.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
21
+ spells_mtg-0.11.5.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
22
+ spells_mtg-0.11.5.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
23
+ spells_mtg-0.11.5.dist-info/RECORD,,