432c4fa659fb2acd786a3b06a39ff0070f520ba3,pudl/analysis.py,,ferc1_expns_corr,#Any#Any#,33
Before Change
// Limit plants by capacity factor
steam_df = steam_df[steam_df["capacity_factor"] > capacity_factor]
expns_corr = {}
for expns in steam_df .filter(regex="expns" ).columns.tolist():
mwh_plants = steam_df.net_generation_mwh[steam_df[expns] != 0]
expns_plants = steam_df[expns][steam_df[expns] != 0]
expns_corr[expns] = np.corrcoef(mwh_plants, expns_plants)[0, 1]
After Change
Returns a dictionary with expns_ field names as the keys, and correlations
as the values.
steam_df = steam_df.copy()
steam_df["capacity_factor"] = \
(steam_df["net_generation_mwh"] / 8760 * steam_df["total_capacity_mw"])
// Limit plants by capacity factor
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: catalyst-cooperative/pudl
Commit Name: 432c4fa659fb2acd786a3b06a39ff0070f520ba3
Time: 2017-06-30
Author: zane.selvans@catalyst.coop
File Name: pudl/analysis.py
Class Name:
Method Name: ferc1_expns_corr
Project Name: catalyst-cooperative/pudl
Commit Name: b484bedcd2e4fab69ded7519779926b2ccb8b416
Time: 2017-07-05
Author: alanamwilson@gmail.com
File Name: pudl/analysis.py
Class Name:
Method Name: ferc1_expns_corr
Project Name: NeuroTechX/moabb
Commit Name: 89643502222eed33a07ec1a16e28f082b09ceede
Time: 2018-03-06
Author: alexandre.barachant@gmail.com
File Name: moabb/contexts/base.py
Class Name: BaseImageryParadigm
Method Name: _epochs