Skip to content

ENH: Improved copy methods #71

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 1 commit into from
Mar 26, 2014
Merged

ENH: Improved copy methods #71

merged 1 commit into from
Mar 26, 2014

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Mar 16, 2014

The new copy methods have a uniform API (which also matches pandas): they take
a keyword argument deep.

deep=False no longer always loads data into a numpy array. This makes it
possible to write functions to using the public API to rename variable
dimensions without always loading variables into memory.

The new copy methods have a uniform API (which also matches pandas): they take
a keyword argument `deep`.

`deep=False` no longer always loads data into a numpy array. This makes it
possible to write functions to using the public API to rename variable
dimensions without always loading variables into memory.
shoyer added a commit that referenced this pull request Mar 21, 2014
This provides an interface for re-indexing a dataset or dataset array using
the coordinates from another object. Missing values along any coordinate are
replaced by `NaN`.

This method is directly based on the pandas method `DataFrame.reindex_like`
(and the related series and panel variants). Eventually, I would like to build
upon this functionality to add a `join` method to `xray.align` with the
possible values `{'outer', 'inner', 'left', 'right'}`, just like
`DataFrame.align`.

This PR depends on PR #71, since I use its improved `copy` method for
datasets.
shoyer added a commit that referenced this pull request Mar 21, 2014
This provides an interface for re-indexing a dataset or dataset array using
the coordinates from another object. Missing values along any coordinate are
replaced by `NaN`.

This method is directly based on the pandas method `DataFrame.reindex_like`
(and the related series and panel variants). Eventually, I would like to build
upon this functionality to add a `join` method to `xray.align` with the
possible values `{'outer', 'inner', 'left', 'right'}`, just like
`DataFrame.align`.

This PR depends on PR #71, since I use its improved `copy` method for
datasets.
shoyer added a commit that referenced this pull request Mar 21, 2014
This provides an interface for re-indexing a dataset or dataset array using
the coordinates from another object. Missing values along any coordinate are
replaced by `NaN`.

This method is directly based on the pandas method `DataFrame.reindex_like`
(and the related series and panel variants). Eventually, I would like to build
upon this functionality to add a `join` method to `xray.align` with the
possible values `{'outer', 'inner', 'left', 'right'}`, just like
`DataFrame.align`.

This PR depends on PR #71, since I use its improved `copy` method for
datasets.
shoyer added a commit that referenced this pull request Mar 24, 2014
This provides an interface for re-indexing a dataset or dataset array using
the coordinates from another object. Missing values along any coordinate are
replaced by `NaN`.

This method is directly based on the pandas method `DataFrame.reindex_like`
(and the related series and panel variants). Eventually, I would like to build
upon this functionality to add a `join` method to `xray.align` with the
possible values `{'outer', 'inner', 'left', 'right'}`, just like
`DataFrame.align`.

This PR depends on PR #71, since I use its improved `copy` method for
datasets.
akleeman added a commit that referenced this pull request Mar 26, 2014
@akleeman akleeman merged commit d1662f4 into master Mar 26, 2014
@shoyer shoyer deleted the improved-copy branch March 27, 2014 09:05
shoyer added a commit that referenced this pull request Mar 31, 2014
This provides an interface for re-indexing a dataset or dataset array using
the coordinates from another object. Missing values along any coordinate are
replaced by `NaN`.

This method is directly based on the pandas method `DataFrame.reindex_like`
(and the related series and panel variants). Eventually, I would like to build
upon this functionality to add a `join` method to `xray.align` with the
possible values `{'outer', 'inner', 'left', 'right'}`, just like
`DataFrame.align`.

This PR depends on PR #71, since I use its improved `copy` method for
datasets.
keewis pushed a commit to keewis/xarray that referenced this pull request Jan 17, 2024
* Update installation instructions

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

2 participants