Closed ascheliga closed 2 months ago
I get the error: "list[tuple[float, float]]" has no attribute "iloc" [attr-defined] when running mypy type-checking for three lines of code. I do not understand what is happening. Ask for clarification.
"list[tuple[float, float]]" has no attribute "iloc" [attr-defined]
https://github.com/ascheliga/CYGNSS-GRACE/blob/5d71f2943cfc9b862fca8cf92a4e2dbe55dfc9b0/codebase/area_calcs.py#L149-L151
The error is in the km2_data.iloc[0,:] snippet.
km2_data.iloc[0,:]
Fixed by converting km2_data into np.array when assigned.
km2_data
I get the error:
"list[tuple[float, float]]" has no attribute "iloc" [attr-defined]
when running mypy type-checking for three lines of code. I do not understand what is happening. Ask for clarification.https://github.com/ascheliga/CYGNSS-GRACE/blob/5d71f2943cfc9b862fca8cf92a4e2dbe55dfc9b0/codebase/area_calcs.py#L149-L151