Skip to content
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

Fix scatter() to work with nan in meta columns #189

Merged

Conversation

danielhuppmann
Copy link
Member

@danielhuppmann danielhuppmann commented Feb 5, 2019

Please confirm that this PR has done the following:

  • Tests Added (tests continue to work)
  • Documentation Added
  • Description in RELEASE_NOTES.md Added

Description of PR

This PR extends the fix for the line_plot() feature with nan in meta columns (see #187) to the scatter function.

@coveralls
Copy link

coveralls commented Feb 5, 2019

Coverage Status

Coverage increased (+0.03%) to 84.105% when pulling 1fef450 on danielhuppmann:fix_scatter_with_meta_nan into 23f5991 on IAMconsortium:master.

.reset_index()
)
else:
return self.data.copy()

def _discover_meta_cols(self, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

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

even thought its private, could you please add a docstring explaining what this function does?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member

Choose a reason for hiding this comment

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

Sorry to be pedantic, but maybe something like:

Return the subset of `kwargs` values (not keys!) which match a metadata column name

pyam/core.py Outdated Show resolved Hide resolved
@gidden
Copy link
Member

gidden commented Feb 5, 2019

one last request, then g2g!

@gidden gidden merged commit 213f1d6 into IAMconsortium:master Feb 5, 2019
@gidden
Copy link
Member

gidden commented Feb 5, 2019

thanks @danielhuppmann !

@danielhuppmann danielhuppmann deleted the fix_scatter_with_meta_nan branch February 11, 2019 09:56
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.

None yet

3 participants