Comments (2)
You could rely on the reset_index method's default of returning a copy to avoid making your own copy and save a fair amount of work here:
Current:
sc_developable_df = sc_df[sc_df['capacity'] > 0].copy()
# reset the index because otherwise the unpacker will get messed up
sc_developable_df.reset_index(drop=True, inplace=True)
Alternative:
sc_developable_df = sc_df[sc_df['capacity'] > 0].reset_index(drop=True)
There are a few other similarly simple speed ups available in this repo by avoiding making unnecessary iterables, using translate tables instead of multiple calls to str.replace, etc. I'm happy to make a pr if you're looking for this sort of thing. This is a really cool project!
from review.
Hello, yes, that all sounds excellent, glad to see someone outside our little group using reView. I've been quite busy with other projects for a while and I would definitely appreciate a pull request for this piece!
from review.
Related Issues (20)
- ReEDS Buildout Page Features HOT 7
- Caching Problem HOT 1
- UnicodeDecodeError HOT 1
- Remove non-available variables from dropdown
- Add existing solar and wind farms
- Data Download Button HOT 1
- Area based weighting with Bespoke Hybrids
- Update CLIs to use "review" base command HOT 3
- Publishable Map/Graph Image Download HOT 2
- Replace --tech with --breaks-style in make-maps CLI HOT 1
- Mismatched fonts
- Default Project
- Histograms are horizontal and too thin.
- Add support for new PV and bespoke wind capacity attributes
- Chart elements do not move dynamically when Options are expanded (Chrome) HOT 1
- Fix positioning of "Additional Scenarios" tab HOT 1
- Bespoke Unpacking Broke When Other Selections Present
- Time Series HOT 10
- Flask Caching Security Issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from review.