Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Automatic column naming could be misleading #9

Closed
a-vester opened this issue Sep 7, 2022 · 0 comments · Fixed by #19
Closed

bug: Automatic column naming could be misleading #9

a-vester opened this issue Sep 7, 2022 · 0 comments · Fixed by #19
Labels
bug Something isn't working needs-fix Bug that needs to be fixed

Comments

@a-vester
Copy link
Member

a-vester commented Sep 7, 2022

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:
image

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".

@a-vester a-vester added the bug Something isn't working label Sep 7, 2022
@a-vester a-vester added the needs-fix Bug that needs to be fixed label Oct 19, 2022
a-vester added a commit that referenced this issue Nov 3, 2022
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
deepakparashar1987 pushed a commit that referenced this issue Nov 8, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-fix Bug that needs to be fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant