rapidata 2.42.7__py3-none-any.whl → 2.42.8__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 rapidata might be problematic. Click here for more details.

rapidata/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.42.7"
1
+ __version__ = "2.42.8"
2
2
 
3
3
  from .rapidata_client import (
4
4
  RapidataClient,
@@ -1,4 +1,4 @@
1
- import re
1
+ import pandas as pd
2
2
  import urllib.parse
3
3
  import webbrowser
4
4
  from colorama import Fore
@@ -479,6 +479,33 @@ class RapidataBenchmark:
479
479
  + Fore.RESET
480
480
  )
481
481
 
482
+ def get_overall_standings(self, tags: Optional[list[str]] = None) -> pd.DataFrame:
483
+ """
484
+ Returns an aggregated elo table of all leaderboards in the benchmark.
485
+ """
486
+ with tracer.start_as_current_span("get_overall_standings"):
487
+ participants = self._openapi_service.benchmark_api.benchmark_benchmark_id_standings_get(
488
+ benchmark_id=self.id,
489
+ tags=tags,
490
+ )
491
+
492
+ standings = []
493
+ for participant in participants.items:
494
+ standings.append(
495
+ {
496
+ "name": participant.name,
497
+ "wins": participant.wins,
498
+ "total_matches": participant.total_matches,
499
+ "score": (
500
+ round(participant.score, 2)
501
+ if participant.score is not None
502
+ else None
503
+ ),
504
+ }
505
+ )
506
+
507
+ return pd.DataFrame(standings)
508
+
482
509
  def __str__(self) -> str:
483
510
  return f"RapidataBenchmark(name={self.name}, id={self.id})"
484
511
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapidata
3
- Version: 2.42.7
3
+ Version: 2.42.8
4
4
  Summary: Rapidata package containing the Rapidata Python Client to interact with the Rapidata Web API in an easy way.
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- rapidata/__init__.py,sha256=BpCIwBQOBgqjt6xF6FxsuQ7qwy0z6EWVVUf6HjKgDHo,872
1
+ rapidata/__init__.py,sha256=Wour_mnWfBvZzS6vyY8wmx-oX9J8ii9a3Z_L8OXca14,872
2
2
  rapidata/api_client/__init__.py,sha256=Rh2aAoa6nDv09Z7cpTNdrPotXixBcNN_2VevCDD1goc,37144
3
3
  rapidata/api_client/api/__init__.py,sha256=CaZJ54mxbAEzAFd0Cjy0mfiUabD-d_7tqVOgjU4RxZI,1749
4
4
  rapidata/api_client/api/asset_api.py,sha256=buYMBGvg5_SLkJ7aG07c7_1rT6TXTCqoLfoV8O2nJhM,34442
@@ -608,7 +608,7 @@ rapidata/rapidata_client/benchmark/leaderboard/__init__.py,sha256=47DEQpj8HBSa-_
608
608
  rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py,sha256=BPNTrKeEGvISdzAe_OpIIUtdX4tYgh_2g9w7YOnytA4,7840
609
609
  rapidata/rapidata_client/benchmark/participant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
610
610
  rapidata/rapidata_client/benchmark/participant/_participant.py,sha256=rrjWkH8MO-Jow0Tpg4ejMmhyD2h-_s1-YzM2Seeu_Z8,5344
611
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py,sha256=9Xk7WhuD8C7gPv2C4QVR_EdyKlIxjPiddHM6s3-dBT0,19925
611
+ rapidata/rapidata_client/benchmark/rapidata_benchmark.py,sha256=LTRbakqmYFFx3lswj0X3Axv4V3bk-9-cAKJn6ivNUpw,20977
612
612
  rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py,sha256=5f7tLU39wyOt8rc-3MEqVdc6ANmP2j6hfzAupTCbHD0,8870
613
613
  rapidata/rapidata_client/config/__init__.py,sha256=AdL9mKlOa_xm3spFKPBBdTYzhioQh7-UvXd6t84wlDk,238
614
614
  rapidata/rapidata_client/config/logger.py,sha256=nQl9w6wLdvKGJFqtEQWoUBAlDtvYmo3w4ekIx4sNynI,5518
@@ -716,7 +716,7 @@ rapidata/service/credential_manager.py,sha256=T3yL4tXVnibRytxjQkOC-ex3kFGQR5KcKU
716
716
  rapidata/service/local_file_service.py,sha256=0Q4LdoEtPFKzgXK2oZ1cQ-X7FipakscjGnnBH8dRFRQ,855
717
717
  rapidata/service/openapi_service.py,sha256=E2zVagI_ri15PK06ITO_VNKYDJ0VZQG1YQ1T6bEIVsY,5566
718
718
  rapidata/types/__init__.py,sha256=NLRuTGbTImRv3yIp8we_oqVvCuBd7TDNVlAzkVGs9oo,6056
719
- rapidata-2.42.7.dist-info/METADATA,sha256=ZQbzB1WKuzpVAb2VOIAVg2jG10Jis0ziybIzQjLYLhI,1479
720
- rapidata-2.42.7.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
721
- rapidata-2.42.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
722
- rapidata-2.42.7.dist-info/RECORD,,
719
+ rapidata-2.42.8.dist-info/METADATA,sha256=VsHfP0Grd0sNyKFng-VDXCUD4sIQsiaNZmP4gbgFFgE,1479
720
+ rapidata-2.42.8.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
721
+ rapidata-2.42.8.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
722
+ rapidata-2.42.8.dist-info/RECORD,,