Closed renanxcortes closed 5 years ago
After what @sjsrey said yesterday about PySAL handling NA's I was thinking also changing this PR to make a check if there is NAs and only raise an informative ValueError and that is it. The user would have to decide what to do with the NAs, any thoughts on that?
I'd prefer to merge https://github.com/pysal/segregation/pull/131 rather than this one. So, if https://github.com/pysal/segregation/pull/131 gets merged, I'll close this one.
Closed due to https://github.com/pysal/segregation/pull/131.
This handles https://github.com/pysal/segregation/issues/105 in a conservative way: it raises an informative error whenever the user has missing data in the input columns, but adds a
fillna
useful option if he/she wants to input 0 in these missings values to calculate the indexes.All tests passed.