Skip to content

Commit

Permalink
Merge pull request #36 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
fixed error in dataframe name
  • Loading branch information
andresk159 committed Aug 23, 2023
2 parents 2b2fd96 + 413ae28 commit 591d5bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/aclimate_cpt/01_prediccion.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,9 @@ def proba(
df_final["month"] = month
df_final["season"] = season_type
df_final["predictand"] = predictand
df_raw['below'] = df_raw['below'].apply(float)/100
df_raw['normal'] = df_raw['normal'].apply(float)/100
df_raw['above'] = df_raw['above'].apply(float)/100
df_final['below'] = df_final['below'].apply(float)/100
df_final['normal'] = df_final['normal'].apply(float)/100
df_final['above'] = df_final['above'].apply(float)/100
df_final = df_final.iloc[:,[4,5,0,1,2,3,6,7]]

return df_final
Expand Down
6 changes: 3 additions & 3 deletions src/aclimate_cpt/prediction_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,9 +801,9 @@ def proba(self,
df_final["month"] = month
df_final["season"] = season_type
df_final["predictand"] = predictand
df_raw['below'] = df_raw['below'].apply(float)/100
df_raw['normal'] = df_raw['normal'].apply(float)/100
df_raw['above'] = df_raw['above'].apply(float)/100
df_final['below'] = df_final['below'].apply(float)/100
df_final['normal'] = df_final['normal'].apply(float)/100
df_final['above'] = df_final['above'].apply(float)/100
df_final = df_final.iloc[:,[4,5,0,1,2,3,6,7]]

return df_final
Expand Down

0 comments on commit 591d5bb

Please sign in to comment.