df_high = df_all[['model_cd', 'modelname', 'installcost','yearlyupkeep', 'Efficiency']][df_all['Efficiency']==High] high_efficiency_model = df_high[['model_cd', 'modelname','installcost', 'yearlyupkeep','Efficiency']].groupby('Efficiency') high_efficiency_model.to_csv(index = True) keep getting an
Fantastic news! We've Found the answer you've been seeking!
Question:
df_high = df_all[['model_cd', 'modelname', 'installcost','yearlyupkeep', 'Efficiency']][df_all['Efficiency']=="High"]
high_efficiency_model = df_high[['model_cd', 'modelname','installcost', 'yearlyupkeep','Efficiency']].groupby('Efficiency')
high_efficiency_model.to_csv(index = True)
keep getting an error saying :
AttributeError: 'DataFrameGroupBy' object has no attribute'to_csv'
How to fix
Posted Date: