spells-mtg 0.10.5__py3-none-any.whl → 0.10.7__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/columns.py CHANGED
@@ -217,21 +217,21 @@ _specs: dict[str, ColSpec] = {
217
217
  ),
218
218
  ColName.GAME_DATE: ColSpec(
219
219
  col_type=ColType.GROUP_BY,
220
- expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H-%M-%S").dt.date(),
220
+ expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.date(),
221
221
  ),
222
222
  ColName.GAME_DAY_OF_WEEK: ColSpec(
223
223
  col_type=ColType.GROUP_BY,
224
224
  expr=pl.col(ColName.GAME_TIME)
225
- .str.to_datetime("%Y-%m-%d %H-%M-%S")
225
+ .str.to_datetime("%Y-%m-%d %H:%M:%S")
226
226
  .dt.weekday(),
227
227
  ),
228
228
  ColName.GAME_HOUR: ColSpec(
229
229
  col_type=ColType.GROUP_BY,
230
- expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H-%M-%S").dt.hour(),
230
+ expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.hour(),
231
231
  ),
232
232
  ColName.GAME_WEEK: ColSpec(
233
233
  col_type=ColType.GROUP_BY,
234
- expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H-%M-%S").dt.week(),
234
+ expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.week(),
235
235
  ),
236
236
  ColName.BUILD_INDEX: ColSpec(
237
237
  col_type=ColType.GROUP_BY,
spells/config.py CHANGED
@@ -1,4 +1,5 @@
1
1
  all_sets = [
2
+ "DFT",
2
3
  "PIO",
3
4
  "FDN",
4
5
  "DSK",
spells/external.py CHANGED
@@ -345,11 +345,11 @@ def get_set_context(set_code: str, force_download=False) -> int:
345
345
 
346
346
  df = summon(
347
347
  set_code,
348
- columns=[ColName.NUM_DRAFTS],
348
+ columns=[ColName.NUM_TAKEN],
349
349
  group_by=[ColName.DRAFT_DATE, ColName.PICK_NUM],
350
350
  )
351
351
 
352
- context_df = df.filter(pl.col(ColName.NUM_DRAFTS) > 1000).select(
352
+ context_df = df.filter(pl.col(ColName.NUM_TAKEN) > 1000).select(
353
353
  [
354
354
  pl.col(ColName.DRAFT_DATE).min().alias("release_date"),
355
355
  pl.col(ColName.PICK_NUM).max().alias("picks_per_pack"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.10.5
3
+ Version: 0.10.7
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
@@ -1,19 +1,19 @@
1
1
  spells/__init__.py,sha256=0pnh2NLn9FrNKncE9-tBsighp3e8YAsN--_ovUpgWGs,333
2
2
  spells/cache.py,sha256=7XDcltmlpagK2nkhuCCcAQVyrFMYkw9Acr7iVsLs3JU,3799
3
3
  spells/cards.py,sha256=6stFPhJOzHqvQnkSv9cDeylRa_7L9Y8sOaowiZhzz6I,4174
4
- spells/columns.py,sha256=tQPhFpG4vOMIjV111p8DK4V-d_8634xoE-csBzou_sw,18008
5
- spells/config.py,sha256=_t98dc_uY3Wp3d5tsU3CJgVcWOD3wVlwMo98-tN2KRY,213
4
+ spells/columns.py,sha256=sxYPli2CjjOtPmVz38OqpO-2YYhwuGGLH3s01X9DU8Y,18008
5
+ spells/config.py,sha256=ixAe_raxKYvJBXyvNBJ-mm6ziRiAvtKLJihyFMnashs,224
6
6
  spells/draft_data.py,sha256=xoL82NTgTJWxZK1p-6LjxnYzkeYOr-Dc9-_T0m-WZ1Y,19946
7
7
  spells/enums.py,sha256=MwJ9694AVoaKE22WlFjzHPcRfrU0DKI2_mrWC6_YjhE,4931
8
8
  spells/extension.py,sha256=LBqGbJbe7iSRQkxJK7npkADCfzhdnIwwVvlmTn8xvjQ,8454
9
- spells/external.py,sha256=XZpZ0mn8_BmiF76xEiu2KblZ-dwOxmbs6vrDftl2XbI,11846
9
+ spells/external.py,sha256=USqOtOVY7Mn39rdUPhmIeGm08s6TDnEV8-N3D14qJzE,11844
10
10
  spells/filter.py,sha256=J-YTOOAzOQpvIX29tviYL04RVoOUlfsbjBXoQBDCEdQ,3380
11
11
  spells/log.py,sha256=3avmg65hru8K9npKLvPp1wWWxq-hoEYDUCbxqhPkKUw,2175
12
12
  spells/manifest.py,sha256=iOmhxIVMHu_Av3nd23zGjmUwLvZ2hAM0oc1ErPzZ_oE,8341
13
13
  spells/schema.py,sha256=DbMvV8PIThJTp0Xzp_XIorlW6JhE1ud1kWRGf5SQ4_c,6406
14
14
  spells/utils.py,sha256=IO3brrXVvZla0LRTEB5v6NgGqZb_rYA46XtKBURGMNk,1944
15
- spells_mtg-0.10.5.dist-info/METADATA,sha256=RVb22q0WHU2DVO6AMF2lM_d-Lo3pEQW4kVJytUtArGQ,47227
16
- spells_mtg-0.10.5.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
17
- spells_mtg-0.10.5.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
18
- spells_mtg-0.10.5.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
19
- spells_mtg-0.10.5.dist-info/RECORD,,
15
+ spells_mtg-0.10.7.dist-info/METADATA,sha256=XFOEQSyt-ddYxzPcspB5_kaeJj8XE-WPMylV-flVIvM,47227
16
+ spells_mtg-0.10.7.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
17
+ spells_mtg-0.10.7.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
18
+ spells_mtg-0.10.7.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
19
+ spells_mtg-0.10.7.dist-info/RECORD,,