Skip to content

Support "None" as a variable name and use it as a default #147

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 2 commits into from
Jun 9, 2014

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Jun 6, 2014

This makes the xray API a little more similar to pandas, which
makes heavy use of name = None for objects that can but don't always
have names like Series and Index.

It will be a particular useful option to have around when we add
a direct constructor for DataArray objects (#115). For now, arrays will
probably only end up being named None if they are the result of some
mathematical operation where the name could be ambiguous.

shoyer added 2 commits June 5, 2014 19:23
This makes the xray API a little more similar to pandas, which
makes heavy use of `name = None` for objects that can but don't always
have names like Series and Index.

It will be a particular useful option to have around when we add
a direct constructor for DataArray objects (pydata#115). For now, arrays will
probably only end up being named `None` if they are the result of some
mathematical operation where the name could be ambiguous.
@shoyer shoyer added this to the 0.2 milestone Jun 9, 2014
shoyer added a commit that referenced this pull request Jun 9, 2014
Support "None" as a variable name and use it as a default
@shoyer shoyer merged commit 3af0e34 into pydata:master Jun 9, 2014
@shoyer shoyer deleted the variable-None branch June 9, 2014 06:17
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.

1 participant