Skip to content

Explicit key_of_x check #1169

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

Merged
merged 4 commits into from
Jul 24, 2019
Merged

Conversation

LeandroOrdonez
Copy link
Contributor

@LeandroOrdonez LeandroOrdonez commented Jun 22, 2019

An explicit check for None (key_of_x == None) in the color_scale_fun(x) method from class folium.features.Choropleth has been added, along with the corresponding (provisional?) test.

Closes #1168

@Conengmo Conengmo changed the title Bug fix from issue #1168 Explicit key_of_x check Jun 24, 2019
@Conengmo Conengmo added the waiting for review PR is waiting to be reviewed label Jun 24, 2019
Copy link
Member

@Conengmo Conengmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Thanks for your PR @LeandroOrdonez. I have one comment about the test, please have a look. Should be easy to resolve, we can merge this afterwards.

@Conengmo Conengmo added waiting for changes This PR has been reviewed and changes are needed before merging and removed waiting for review PR is waiting to be reviewed labels Jul 21, 2019
@Conengmo Conengmo merged commit 74243fb into python-visualization:master Jul 24, 2019
@Conengmo Conengmo removed the waiting for changes This PR has been reviewed and changes are needed before merging label Jul 24, 2019
@Conengmo
Copy link
Member

Thanks @LeandroOrdonez for your contribution!

@LeandroOrdonez
Copy link
Contributor Author

LeandroOrdonez commented Jul 24, 2019

Happy to help @Conengmo! Keep up the good work! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError raised when key_of_x = 0
3 participants