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: discrepancy between project and user view wrt hours #1700

Open
cantsin opened this issue Dec 7, 2023 · 1 comment
Open

bug: discrepancy between project and user view wrt hours #1700

cantsin opened this issue Dec 7, 2023 · 1 comment
Labels

Comments

@cantsin
Copy link
Member

cantsin commented Dec 7, 2023

The project data table rounds up hours while the user data table has two decimal points for hours. In analytics.py, we do .applymap("{:.0f}" when perhaps it should be :.2f. This leads to inconsistency and confusion when looking at individual user hours.

Example: https://tock.18f.gov/projects/1909/ rounds up to 10 hours (first column, second row) while the actual user has 9.5 hours.

@cantsin cantsin added the bug label Dec 7, 2023
@cantsin
Copy link
Member Author

cantsin commented Mar 4, 2024

FYSA DataFrame.applymap seems deprecated. We should be using DataFrame.map instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant