grid-parity-exchange / Egret

Tools for building power systems optimization problems
Other
126 stars 50 forks source link

Make egret compatible with pandas 1.5 #292

Closed darrylmelander closed 1 year ago

darrylmelander commented 1 year ago

Fixes #290.

Summary/Motivation:

Fixes an error when using Pandas 1.5 or later. Pandas started converting Series objects into bare numpy arrays when assigning to a cell.

Changes proposed in this PR:

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.