yeref 0.24.79__py3-none-any.whl → 0.24.80__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.
yeref/yeref.py CHANGED
@@ -16536,6 +16536,18 @@ async def return_retention_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16536
16536
  row.append(f"{row_sum:.1f}")
16537
16537
  writer.writerow(row)
16538
16538
 
16539
+ factors = []
16540
+ for c in cohort_months:
16541
+ for i in range(1, num_cohorts):
16542
+ prev_rev = rev_by_cohort[c].get(i - 1, 0.0)
16543
+ curr_rev = rev_by_cohort[c].get(i, 0.0)
16544
+ if prev_rev > 0 and curr_rev > 0:
16545
+ factors.append(curr_rev / prev_rev)
16546
+ avg_multiplier = math.prod(factors) ** (1 / len(factors)) if factors else 1.0
16547
+
16548
+ writer.writerow([])
16549
+ writer.writerow([f"NRR ~ ×{avg_multiplier:.2f} monthly"])
16550
+
16539
16551
  thumb = types.FSInputFile(os.path.join(EXTRA_D, "parse.jpg"))
16540
16552
  await bot.send_document(chat_id=my_tid, document=types.FSInputFile(path), thumbnail=thumb)
16541
16553
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.79
3
+ Version: 0.24.80
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -0,0 +1,8 @@
1
+ yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
+ yeref/l_.py,sha256=LMX_olmJwq-tgoALJCnhV_fGrL_i_43yBLkLIcEVqGo,1176743
3
+ yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
+ yeref/yeref.py,sha256=x5TSj6rkpsCPAETTxI1IDGP4ZU4-JxzQdBMUuIeVgRM,1054265
5
+ yeref-0.24.80.dist-info/METADATA,sha256=LiCI4rMW4VqjyUP8tOIbL2B7xCfK3bN_dXGmQ1ETB5w,119
6
+ yeref-0.24.80.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ yeref-0.24.80.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
+ yeref-0.24.80.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
- yeref/l_.py,sha256=LMX_olmJwq-tgoALJCnhV_fGrL_i_43yBLkLIcEVqGo,1176743
3
- yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
- yeref/yeref.py,sha256=OkzYRSpNveWRFwJTVruMsncDCazljcNo9rHXRuXcUL4,1053723
5
- yeref-0.24.79.dist-info/METADATA,sha256=xiNJrIl4_xndDNgPlsinfljko2XWb2xZTvmF3xKcHwE,119
6
- yeref-0.24.79.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- yeref-0.24.79.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.24.79.dist-info/RECORD,,