spells-mtg 0.10.6__tar.gz → 0.10.8__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.10.6 → spells_mtg-0.10.8}/PKG-INFO +2 -1
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/README.md +1 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/pyproject.toml +1 -1
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/columns.py +8 -4
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/config.py +1 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/enums.py +1 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/LICENSE +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/__init__.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/cache.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/cards.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/draft_data.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/extension.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/external.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/filter.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/log.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/manifest.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/schema.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/spells/utils.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/tests/__init__.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/tests/filter_test.py +0 -0
- {spells_mtg-0.10.6 → spells_mtg-0.10.8}/tests/utils_test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: spells-mtg
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.8
|
|
4
4
|
Summary: analaysis of 17Lands.com public datasets
|
|
5
5
|
Author-Email: Joel Barnes <oelarnes@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -412,6 +412,7 @@ A table of all included columns. Columns can be referenced by enum or by string
|
|
|
412
412
|
| `PACK_NUM` | `"pack_num"` | `DRAFT` | `GROUP_BY` | 1-indexed | Int |
|
|
413
413
|
| `PICK_NUMBER` | `"pick_number"` | `DRAFT` | `FILTER_ONLY` | Dataset Column | Int |
|
|
414
414
|
| `PICK_NUM` | `"pick_num"` | `DRAFT` | `GROUP_BY` | 1-indexed | Int |
|
|
415
|
+
| `PICK_INDEX` | `"pick_index"` | `DRAFT` | `GROUP_BY` | 0-indexed, through 39/42/45 depending on set | Int |
|
|
415
416
|
| `TAKEN_AT` | `"taken_at` | `DRAFT` | `PICK_SUM` | Summable alias of `PICK_NUM` | Int |
|
|
416
417
|
| `NUM_DRAFTS` | `"num_drafts"` | `DRAFT` | `PICK_SUM` | | Int |
|
|
417
418
|
| `NUM_TAKEN` | `"num_taken"` | `DRAFT` | `PICK_SUM` | Sum 1 over rows | Int |
|
|
@@ -401,6 +401,7 @@ A table of all included columns. Columns can be referenced by enum or by string
|
|
|
401
401
|
| `PACK_NUM` | `"pack_num"` | `DRAFT` | `GROUP_BY` | 1-indexed | Int |
|
|
402
402
|
| `PICK_NUMBER` | `"pick_number"` | `DRAFT` | `FILTER_ONLY` | Dataset Column | Int |
|
|
403
403
|
| `PICK_NUM` | `"pick_num"` | `DRAFT` | `GROUP_BY` | 1-indexed | Int |
|
|
404
|
+
| `PICK_INDEX` | `"pick_index"` | `DRAFT` | `GROUP_BY` | 0-indexed, through 39/42/45 depending on set | Int |
|
|
404
405
|
| `TAKEN_AT` | `"taken_at` | `DRAFT` | `PICK_SUM` | Summable alias of `PICK_NUM` | Int |
|
|
405
406
|
| `NUM_DRAFTS` | `"num_drafts"` | `DRAFT` | `PICK_SUM` | | Int |
|
|
406
407
|
| `NUM_TAKEN` | `"num_taken"` | `DRAFT` | `PICK_SUM` | Sum 1 over rows | Int |
|
|
@@ -166,6 +166,10 @@ _specs: dict[str, ColSpec] = {
|
|
|
166
166
|
col_type=ColType.GROUP_BY,
|
|
167
167
|
expr=pl.col(ColName.PICK_NUMBER) + 1,
|
|
168
168
|
),
|
|
169
|
+
ColName.PICK_INDEX: ColSpec(
|
|
170
|
+
col_type=ColType.GROUP_BY,
|
|
171
|
+
expr=lambda set_context: pl.col(ColName.PICK_NUMBER) + pl.col(ColName.PACK_NUMBER) * set_context['picks_per_pack']
|
|
172
|
+
),
|
|
169
173
|
ColName.TAKEN_AT: ColSpec(
|
|
170
174
|
col_type=ColType.PICK_SUM,
|
|
171
175
|
expr=pl.col(ColName.PICK_NUM),
|
|
@@ -217,21 +221,21 @@ _specs: dict[str, ColSpec] = {
|
|
|
217
221
|
),
|
|
218
222
|
ColName.GAME_DATE: ColSpec(
|
|
219
223
|
col_type=ColType.GROUP_BY,
|
|
220
|
-
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H
|
|
224
|
+
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.date(),
|
|
221
225
|
),
|
|
222
226
|
ColName.GAME_DAY_OF_WEEK: ColSpec(
|
|
223
227
|
col_type=ColType.GROUP_BY,
|
|
224
228
|
expr=pl.col(ColName.GAME_TIME)
|
|
225
|
-
.str.to_datetime("%Y-%m-%d %H
|
|
229
|
+
.str.to_datetime("%Y-%m-%d %H:%M:%S")
|
|
226
230
|
.dt.weekday(),
|
|
227
231
|
),
|
|
228
232
|
ColName.GAME_HOUR: ColSpec(
|
|
229
233
|
col_type=ColType.GROUP_BY,
|
|
230
|
-
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H
|
|
234
|
+
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.hour(),
|
|
231
235
|
),
|
|
232
236
|
ColName.GAME_WEEK: ColSpec(
|
|
233
237
|
col_type=ColType.GROUP_BY,
|
|
234
|
-
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H
|
|
238
|
+
expr=pl.col(ColName.GAME_TIME).str.to_datetime("%Y-%m-%d %H:%M:%S").dt.week(),
|
|
235
239
|
),
|
|
236
240
|
ColName.BUILD_INDEX: ColSpec(
|
|
237
241
|
col_type=ColType.GROUP_BY,
|
|
@@ -60,6 +60,7 @@ class ColName(StrEnum):
|
|
|
60
60
|
PACK_NUM = "pack_num" # pack_number plus 1
|
|
61
61
|
PICK_NUMBER = "pick_number"
|
|
62
62
|
PICK_NUM = "pick_num" # pick_number plus 1
|
|
63
|
+
PICK_INDEX = "pick_index" # 0 - 3 * picks_per_pack - 1
|
|
63
64
|
TAKEN_AT = "taken_at"
|
|
64
65
|
NUM_TAKEN = "num_taken"
|
|
65
66
|
NUM_DRAFTS = "num_drafts"
|
|
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
|