You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying the functions get_scores_from_ratings / get_scores_from_warf, the resulting series/dataframe column will have the rating_provider attached to its name. This might be misleading.
Example from the "Getting started" section of the docs:
Here, the column rtg_score_SP is coming from worst_rtg. However, this is not clear.
Hence, it would be more appropriate to have the series/column name of the source to be suffixed to "rtg_score", i.e. the column name should be something like "rtg_score_worst_rtg".
The text was updated successfully, but these errors were encountered:
BREAKING CHANGE:
* ``get_scores_from_ratings()``
When input a ``pd.Series``, the name of the output series will now
become ``ratings.name`` prefixed with "rtg_score".
When input a ``pd.DataFrame``, the column names of the out frame
will now become ``ratings.columns`` prefixed with "rtg_score_".
* ``get_warf_from_ratings()``
When input a ``pd.Series``, the name of the output series will now
become ``ratings.name`` prefixed with "warf".
When input a ``pd.DataFrame``, the column names of the out frame
will now become ``ratings.columns`` prefixed with "warf_".
Closes#9
refactor: Automatic column naming
BREAKING CHANGE:
* ``get_scores_from_ratings()``
When input a ``pd.Series``, the name of the output series will now
become ``ratings.name`` prefixed with "rtg_score".
When input a ``pd.DataFrame``, the column names of the out frame
will now become ``ratings.columns`` prefixed with "rtg_score_".
* ``get_warf_from_ratings()``
When input a ``pd.Series``, the name of the output series will now
become ``ratings.name`` prefixed with "warf".
When input a ``pd.DataFrame``, the column names of the out frame
will now become ``ratings.columns`` prefixed with "warf_".
Closes#9
When applying the functions
get_scores_from_ratings
/get_scores_from_warf
, the resulting series/dataframe column will have therating_provider
attached to its name. This might be misleading.Example from the "Getting started" section of the docs:
![image](https://user-images.githubusercontent.com/104636025/188861681-3173b68d-aaa6-4374-bdad-624adcef8304.png)
Here, the column
rtg_score_SP
is coming fromworst_rtg
. However, this is not clear.Hence, it would be more appropriate to have the series/column name of the source to be suffixed to "rtg_score", i.e. the column name should be something like "rtg_score_worst_rtg".
The text was updated successfully, but these errors were encountered: