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

Regenerate lock file #183

Merged
merged 2 commits into from
Oct 16, 2020
Merged

Regenerate lock file #183

merged 2 commits into from
Oct 16, 2020

Conversation

jenhagg
Copy link
Collaborator

@jenhagg jenhagg commented Oct 16, 2020

Purpose

Package were removed from powersimdata, so we should update the lock file here to reflect that.

What the code is doing

The test change is to fix a failure introduced by pandas minor version update. Original code no longer has an effect on the data frame, causing the test to fail. We fix by explicitly casting the column to a float.

Testing

Ran pytest

Time estimate

3 min

@jenhagg jenhagg self-assigned this Oct 16, 2020
@jenhagg jenhagg added this to the spiders milestone Oct 16, 2020
@danielolsen
Copy link
Contributor

Previously it would parse 3.0 to 3?

Copy link
Collaborator

@rouille rouille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know. Hopefully this has no incidence on code that is not tested!

@rouille
Copy link
Collaborator

rouille commented Oct 16, 2020

Previously it would parse 3.0 to 3?

The test passed with the previous version of pandas so I would say it was probably casting the entire column to float when you changed one cell

@jenhagg
Copy link
Collaborator Author

jenhagg commented Oct 16, 2020

it was probably casting the entire column to float when you changed one cell

that's correct, just tested it out again. after the pandas update it would still be an int, which won't raise the error

Copy link
Contributor

@danielolsen danielolsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

@jenhagg jenhagg merged commit 0bd6915 into develop Oct 16, 2020
@jenhagg jenhagg deleted the jon/lock branch October 16, 2020 23:49
@ahurli ahurli mentioned this pull request Mar 16, 2021
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.

3 participants