Skip to content

FIx warnings from caculations #13

@webgisdeveloper

Description

@webgisdeveloper
  1. datatool.py:264: DeprecationWarning: Right multiplication will be prohibited in version 3.0
    rc2xy = lambda r, c: (c, r) * T1
  2. /home/geogateway/ModelofModels/data/Flood_Severity_Calculation_fix.py:205: SettingWithCopyWarning:
    A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
Final_Attributes['Sum_Score_x'][(Final_Attributes['Sum_Score_y'] == 0)] = Final_Attributes['Sum_Score_x']*2
/home/geogateway/ModelofModels/data/Flood_Severity_Calculation_fix.py:206: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
Final_Attributes['Sum_Score_y'][(Final_Attributes['Sum_Score_x'] == 0)] = Final_Attributes['Sum_Score_y']*2

Metadata

Metadata

Labels

question?This issue or pull request already existswontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions