spells-mtg 0.11.15__tar.gz → 0.11.16__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.

Files changed (25) hide show
  1. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/PKG-INFO +1 -1
  2. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/pyproject.toml +1 -1
  3. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/card_data_files.py +25 -1
  4. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/LICENSE +0 -0
  5. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/README.md +0 -0
  6. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/.ruff_cache/.gitignore +0 -0
  7. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/.ruff_cache/0.8.6/17785301476771359756 +0 -0
  8. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/.ruff_cache/CACHEDIR.TAG +0 -0
  9. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/__init__.py +0 -0
  10. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/cache.py +0 -0
  11. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/cards.py +0 -0
  12. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/columns.py +0 -0
  13. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/config.py +0 -0
  14. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/draft_data.py +0 -0
  15. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/enums.py +0 -0
  16. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/extension.py +0 -0
  17. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/external.py +0 -0
  18. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/filter.py +0 -0
  19. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/log.py +0 -0
  20. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/manifest.py +0 -0
  21. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/schema.py +0 -0
  22. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/spells/utils.py +0 -0
  23. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/tests/__init__.py +0 -0
  24. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/tests/filter_test.py +0 -0
  25. {spells_mtg-0.11.15 → spells_mtg-0.11.16}/tests/utils_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.11.15
3
+ Version: 0.11.16
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
@@ -11,7 +11,7 @@ dependencies = [
11
11
  ]
12
12
  requires-python = ">=3.11"
13
13
  readme = "README.md"
14
- version = "0.11.15"
14
+ version = "0.11.16"
15
15
 
16
16
  [project.license]
17
17
  text = "MIT"
@@ -25,6 +25,7 @@ START_DATE_MAP = {
25
25
  "FIN": dt.date(2025, 6, 10),
26
26
  "EOE": dt.date(2025, 7, 29),
27
27
  "OM1": dt.date(2025, 9, 23),
28
+ "Cube+-+Powered": dt.date(2025, 10, 28),
28
29
  }
29
30
 
30
31
  ratings_col_defs = {
@@ -195,4 +196,27 @@ def base_ratings_df(
195
196
  )
196
197
  )
197
198
 
198
- return pl.concat(concat_list)
199
+ raw_df = pl.concat(concat_list)
200
+
201
+ group_cols = [
202
+ ColName.NAME,
203
+ ColName.EXPANSION,
204
+ ColName.MAIN_COLORS,
205
+ ]
206
+
207
+ attr_cols = [
208
+ ColName.EVENT_TYPE,
209
+ ColName.PLAYER_COHORT,
210
+ ColName.COLOR,
211
+ ColName.RARITY,
212
+ ColName.IMAGE_URL,
213
+ ]
214
+
215
+ sum_cols = list(set(ratings_col_defs) - set(group_cols + attr_cols))
216
+
217
+ attr_df = raw_df.select(group_cols + attr_cols).group_by(group_cols).first()
218
+ sum_df = raw_df.select(group_cols + sum_cols).group_by(group_cols).sum()
219
+
220
+ df = attr_df.join(sum_df, on=group_cols, join_nulls=True)
221
+
222
+ return df
File without changes
File without changes
File without changes