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

WIP for transitioning from Panel docs #832

Merged
merged 1 commit into from
Aug 8, 2016
Merged

WIP for transitioning from Panel docs #832

merged 1 commit into from
Aug 8, 2016

Conversation

max-sixty
Copy link
Collaborator

A start for some docs on transitioning from pandas Panel to xarray.

This is some way from the final version - but putting it out there and will iterate.


.. ipython:: python
panel=pd.Panel( pd.np.random.rand(2,3,4), items=list('ab'), major_axis=list('mno'),
minor_axis=pd.date_range(start='2000', periods=4, name='date'))
Copy link
Member

Choose a reason for hiding this comment

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

use whitespace according to pep8 here

@max-sixty
Copy link
Collaborator Author

@shoyer @jhamman
Updated. Not sure exactly whether classes should have double backticks or 'py:class:', so correct me where they're off


.. ipython:: python
panel=pd.Panel(np.random.rand(2,3,4), items=list('ab'), major_axis=list('mno'),
minor_axis=pd.date_range(start='2000', periods=4, name='date'))
Copy link
Member

Choose a reason for hiding this comment

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

can we pep8 this?

    panel = pd.Panel(np.random.rand(2, 3, 4), items=list('ab'), major_axis=list('mno'),
                     minor_axis=pd.date_range(start='2000', periods=4, name='date'))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@shoyer
Copy link
Member

shoyer commented Aug 6, 2016

LGTM after a few tweaks. If the docs aren't formatted quite right we can always fix that later.

@max-sixty
Copy link
Collaborator Author

Updated @shoyer

@shoyer
Copy link
Member

shoyer commented Aug 8, 2016

Thanks @MaximilianR !

@shoyer shoyer merged commit 50f6473 into pydata:master Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants