Skip to content

Remove pandas dependency by decoupling csv writing from dataframes#176

Merged
nreinicke merged 28 commits intoNatLabRockies:mainfrom
machallboyd:feature/ditch-pandas
Apr 25, 2023
Merged

Remove pandas dependency by decoupling csv writing from dataframes#176
nreinicke merged 28 commits intoNatLabRockies:mainfrom
machallboyd:feature/ditch-pandas

Conversation

@machallboyd
Copy link
Copy Markdown
Contributor

@machallboyd machallboyd commented Apr 24, 2023

Removes all dependencies on pandas, which was mostly being used to write CSVs.

At the moment, there's no tests to see if it's producing the same CSVs as before.

Also removes two run_... files which were not in active use.

@machallboyd machallboyd marked this pull request as ready for review April 24, 2023 23:25
@machallboyd machallboyd changed the title Remove pandas dependency Remove pandas dependency by decoupling csv writing from dataframes Apr 25, 2023
@machallboyd
Copy link
Copy Markdown
Contributor Author

This is finally passing tests.

@nreinicke nreinicke self-requested a review April 25, 2023 17:55
Copy link
Copy Markdown
Collaborator

@nreinicke nreinicke left a comment

Choose a reason for hiding this comment

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

Nice! I love that we can not depend on pandas for the core simulator; left a small comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we want to bring this back since we supply a command line tool that uses it:

https://github.com/NREL/hive/blob/a15b8bad16b722564418c708c2d7a3d68bca1f41/pyproject.toml#L60

But, this doesn't use pandas so hopefully that's a trivial ask.

@nreinicke nreinicke merged commit 1a27476 into NatLabRockies:main Apr 25, 2023
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.

2 participants