fixed bug in add_efficiency
This commit is contained in:
@@ -1815,8 +1815,12 @@ def getrowdata_db(id=0, doclean=False, convertnewtons=True,
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if not data.empty and data['efficiency'].mean() == 0 and data['power'].mean() != 0 and checkefficiency == True:
|
if checkefficiency==True and not data.empty:
|
||||||
data = add_efficiency(id=id)
|
try:
|
||||||
|
if data['efficiency'].mean() == 0 and data['power'].mean() != 0:
|
||||||
|
data = add_efficiency(id=id)
|
||||||
|
except KeyError:
|
||||||
|
data = add_efficiency(id=id)
|
||||||
|
|
||||||
if doclean:
|
if doclean:
|
||||||
data = clean_df_stats(data, ignorehr=True)
|
data = clean_df_stats(data, ignorehr=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user