Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@martinctc
Copy link
Member

@martinctc martinctc commented Jan 23, 2024

Summary

This branch adds additional summary stats (e.g. stdev, median, max, min) as an optional output to internal functions, including create_bar_calc() and create_rank_calc()

Changes

The changes made in this PR are:

  1. By setting stats = True, the two functions of create_rank_calc() and create_bar_calc() can expose stdev, median, max, and min figures.
  2. Version incremented to v0.2.4.
  3. Tests modified to accommodate new examples.

Examples

import vivainsights as vi
pq_data = vi.load_pq_data()
vi.create_bar_calc(data = pq_data, metric = 'Collaboration_hours', hrvar = 'Organization', stats = True)
vi.create_rank_calc(
            data=pq_data,
            metric="Emails_sent",
            hrvar=['Organization', 'FunctionType', 'LevelDesignation', 'SupervisorIndicator'],
            mingroup=5,
            stats=True
            )

Checks

  • All checks pass (run python -m unittest discover -s tests -f locally)
  • Versions are updated in pyproject.toml, setup.py, and docs/conf.py (if applicable)
  • NEWS.md has been updated

Notes

This fixes #<issue_number>

<other things, such as how to incorporate new changes>

@martinctc martinctc self-assigned this Jan 23, 2024
@martinctc martinctc marked this pull request as ready for review January 23, 2024 15:41
@martinctc martinctc added the enhancement New feature or request label Jan 23, 2024
@martinctc
Copy link
Member Author

Checks have all passed and now v0.2.4 is on PyPI: https://pypi.org/project/vivainsights/0.2.4/

@martinctc martinctc merged commit a9ea3c8 into main Jan 23, 2024
@martinctc martinctc deleted the update-create_rank branch January 23, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants