Added
- ``pyratings.get_scores_from_ratings``
- ``pyratings.get_scores_from_warf``
- ``pyratings.get_ratings_from_scores``
- ``pyratings.get_ratings_from_warf``
- ``pyratings.get_warf_from_scores``
- ``pyratings.get_warf_from_ratings``
Changed
- BREAKING CHANGE: Internal resource handling now utilizes ``importlib.resources``,
which makes Python >=3.9 **mandatory**.
- BREAKING CHANGE: Some function signatures have been changed:
- ``pyratings.get_pure_ratings``
--Old--: ``get_pure_ratings(ratings: Union[pd.Series, List[pd.Series], pd.DataFrame]) -> Union[pd.Series, List[pd.Series], pd.DataFrame]``
--New--: ``get_pure_ratings(ratings: Union[str, pd.Series, pd.DataFrame]) -> Union[str, pd.Series, pd.DataFrame]``
- ``pyratings.get_best_ratings``
--Old--: ``get_best_ratings(ratings: Dict[str, pd.Series], tenor: Optional[str] = "long-term") -> pd.Series``
--New--: ``get_best_ratings(ratings: pd.DataFrame, rating_provider_input: List[str] = None, rating_provider_output: str = "S&P", tenor: str = "long-term") -> pd.Series``
- ``pyratings.get_second_best_ratings``
--Old--: ``get_second_best_ratings(ratings: Dict[str, pd.Series], tenor: Optional[str] = "long-term") -> pd.Series``
--New--: ``get_second_best_ratings(ratings: pd.DataFrame, rating_provider_input: List[str] = None, rating_provider_output: str = "S&P", tenor: str = "long-term") -> pd.Series``
- ``pyratings.get_worst_ratings``
--Old--: ``get_worst_ratings(ratings: Dict[str, pd.Series], tenor: Optional[str] = "long-term") -> pd.Series``
--New--: ``get_worst_ratings(ratings: pd.DataFrame, rating_provider_input: List[str] = None, rating_provider_output: str = "S&P", tenor: str = "long-term") -> pd.Series``
Removed
- ``get_rating()`` -> Use ``pyratings.get_ratings_from_scores`` or
``pyratings.get_ratings_from_warf`` instead.
- ``to_ratings_from_scores()`` -> Use ``pyratings.get_ratings_from_scores`` instead.
- ``to_scores_from_ratings()`` -> Use ``pyratings.get_scores_from_ratings`` instead.
- ``to_score_from_warf()`` -> Use ``pyratings.get_scores_from_warf`` instead.
- ``to_warf_from_ratings()`` -> Use ``pyratings.get_warf_from_ratings`` instead.