-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fixed choropleth #1005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed choropleth #1005
Conversation
c4a5bf2
to
7d1d1ea
Compare
7d1d1ea
to
86069b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent PR @FloChehab! Thanks for your contribution. I don't have any changes you should make, though I replied on your discussion points and left some other comments. There are a few things we have to decide on before merging.
Looking forward to finishing and merging this, it will close many issues at once :)
By the way, have you considered working with opacity instead of coloring for missing/nan/out-of-range values? |
I think those values should standout that's why I went for |
Nice one, indeed adding that to the docstring would be good. Reminds me we shouldn't forget updating these changes in the example notebooks. |
0b2b470
to
9e80203
Compare
6a2547c
to
7dd7c2a
Compare
I have updated the code accordingly to our discussions, I'll wait for your feedback. Obviously, CI will fail because of the |
By the way, while we are working on choropleth, we could also allow the |
That's not a bad idea. Is that something you would want to do yourself? In any case, I suggest to do that in a new PR after this one, to make this one manageable. |
5d58021
to
e410bb0
Compare
Neat! Nice work. I think this is a well rounded PR, with fixing the binning and missing values. So, what's next? Updating the examples I would say. Only the notebook tests failed, probably because we deprecated I know of two notebooks that have choropleth examples, but there may be others. These two are also the notebooks that failed the Travis build. Another thing would be to look at the tests and see if we can change/add something for the new and updated functionality. |
I have updated the notebooks and added one test (I did my best to come up with something straightforward for testing the new functionalities, it might not be up to your standards). Also, I am wondering why are the notebooks stored on Github with runned cells? (I feel that it is quite a waste of space, and they are not all up-to-date) |
34aea72
to
b638d0e
Compare
Link to nbviewer for your notebook changes:
Good! Notebooks look good and your test seems decent. Thanks. I think we're done with this PR then! What do you think, good to go?
Good question. It's so they are immediately viewable with something like nbviewer.jupyter.org. I don't really like the diffs being unreadable. We do let Travis test if they are renderable though. Do you have an idea how the way we deal with the notebooks could be improved? |
I would consider the PR as done on my side too. I hadn't taken a look at I am more used to Gitlab CI, and in such context I would convert the notebooks to html in the pipeline and store them as job artefacts (which can be directly accessible using a simple URL). I don't know if this could be possible on Github + Travis. |
It is and I used to do that but nbviewer is quite handy, it reduces the maintenance steps and we don't waste CIs running the notebooks. |
BTW, locally I use |
Merged! Thanks @FloChehab, I've enjoyed working with you. |
@Conengmo you are welcome ! It was a pleasure working with you too (you took quite some time discussing, commenting and giving advice !) It might be my only contribution to Folium: we had to use Folium for a course at university when we faced the now fixed bugs related to |
Has a version with this changeset been published yet? Or is there a way to easily install the pre-release version? Would quite like to utilise the updated version for something. |
Not yet. Planning on a new release for next week. |
Closes #971, closes #996 and closes #905.
Other changes:
branca.utilities.color_brewer
):color_brewer
was used, one extra color was generated.One thing I am not sure: I have added the
nan_fill_color
parameter at a logical place in the list of parameters but we might want to change that.All current tests should pass. But new tests might be welcomed for the new features.