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

fix: datetime profile JSON encoding bug #1101

Closed
wants to merge 1 commit into from

Conversation

scottiegarcia
Copy link
Contributor

This fix pertains to my recently created issue here. The JSON encoder was only expecting/being tested for pd.Timestamp as values for _dt_obj_min and _dt_obj_max, but I ran into a case where those fields were datetime.datetime objects.

Running the newly created test on the lastest release reproduces the bug, running on this branch resolves it.

fix: update test case

fix: run pre-commit checks
@scottiegarcia scottiegarcia requested a review from a team as a code owner February 29, 2024 23:16
@scottiegarcia
Copy link
Contributor Author

Mocking pd.DataFrame in one of the tests was causing a new function in sklearn==1.4.1 to error. Since the erroring test_save_conf_mat function is just trying to ensure that the correct confusion matrix is generated and other functions validate the f1_report, I figure just mocking that classification_report function is the easiest path forward

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

Successfully merging this pull request may close these issues.

None yet

1 participant