spells-mtg 0.7.3__py3-none-any.whl → 0.7.4__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/extension.py CHANGED
@@ -130,11 +130,11 @@ def stat_cols(attr: str, silent: bool = False) -> dict[str, ColSpec]:
130
130
  ),
131
131
  f"{attr}_dw_excess": ColSpec(
132
132
  col_type=ColType.AGG,
133
- expr=pl.col(f"{attr}_dw_mean") - pl.col(f"{attr}"),
133
+ expr=pl.col(f"{attr}") - pl.col(f"{attr}_dw_mean"),
134
134
  ),
135
135
  f"{attr}_dw_var": ColSpec(
136
136
  col_type=ColType.AGG,
137
- expr=(pl.col(f"{attr}_dw_excess").pow(2) * pl.col(ColName.DECK))
137
+ expr=(pl.col(f"{attr}_dw_excess").pow(2) * pl.col(ColName.DECK)).sum()
138
138
  / pl.col(ColName.DECK_TOTAL),
139
139
  ),
140
140
  f"{attr}_dw_stdev": ColSpec(
@@ -158,11 +158,13 @@ def stat_cols(attr: str, silent: bool = False) -> dict[str, ColSpec]:
158
158
  ),
159
159
  f"{attr}_pw_excess": ColSpec(
160
160
  col_type=ColType.AGG,
161
- expr=pl.col(f"{attr}_pw_mean") - pl.col(f"{attr}"),
161
+ expr=pl.col(f"{attr}") - pl.col(f"{attr}_pw_mean"),
162
162
  ),
163
163
  f"{attr}_pw_var": ColSpec(
164
164
  col_type=ColType.AGG,
165
- expr=(pl.col(f"{attr}_pw_excess").pow(2) * pl.col(ColName.NUM_IN_POOL))
165
+ expr=(
166
+ pl.col(f"{attr}_pw_excess").pow(2) * pl.col(ColName.NUM_IN_POOL)
167
+ ).sum()
166
168
  / pl.col(ColName.NUM_IN_POOL_TOTAL),
167
169
  ),
168
170
  f"{attr}_pw_stdev": ColSpec(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.7.3
3
+ Version: 0.7.4
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
@@ -4,13 +4,13 @@ spells/cards.py,sha256=EOXAB_F2yedjf6KquCERCIHl0TSIJIoOe1jv8g4JzOc,3601
4
4
  spells/columns.py,sha256=kWeDofGL0bYcxq4OOfUwkU4Ty3fm0xux6R9774v9HVQ,18053
5
5
  spells/draft_data.py,sha256=YeixEMn9OZu9fAFH-VMC6urkbybySqlHITBhfZLFigc,17271
6
6
  spells/enums.py,sha256=DL7e1xDEvrsTMbA7vJB_Et1DaYkyO4rIEzvIQDz3MZk,4871
7
- spells/extension.py,sha256=CcKRdDfFrt2L-53-m2tQrurX-LbIkaRokOD8CuupzW0,6538
7
+ spells/extension.py,sha256=RFLnNdT_4fIibgw_lAsAjQsFzWmNjJp8KRXJvagdz3Y,6580
8
8
  spells/external.py,sha256=PN0PkwdKnvx-4HkApFhI1_ZwRvBUDMUd3Vfbky0xSJA,11786
9
9
  spells/filter.py,sha256=J-YTOOAzOQpvIX29tviYL04RVoOUlfsbjBXoQBDCEdQ,3380
10
10
  spells/manifest.py,sha256=83VCuS5AuVjvOltdNscOOwekAfeIEHSg9a2O_aKAyA0,8214
11
11
  spells/schema.py,sha256=DbMvV8PIThJTp0Xzp_XIorlW6JhE1ud1kWRGf5SQ4_c,6406
12
- spells_mtg-0.7.3.dist-info/METADATA,sha256=gYlwPDbztvSCDiKBb5H31sclXBhlSnyLLizp0Rs2ip0,46731
13
- spells_mtg-0.7.3.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
14
- spells_mtg-0.7.3.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
15
- spells_mtg-0.7.3.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
16
- spells_mtg-0.7.3.dist-info/RECORD,,
12
+ spells_mtg-0.7.4.dist-info/METADATA,sha256=imq85pXWkIfPCz3xg7g5oi3vpmdLlNriPP6dy-7D8Z4,46731
13
+ spells_mtg-0.7.4.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
14
+ spells_mtg-0.7.4.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
15
+ spells_mtg-0.7.4.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
16
+ spells_mtg-0.7.4.dist-info/RECORD,,