-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Explicit indexes #5692
Explicit indexes #5692
Commits on Aug 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6ccebeb - Browse repository at this point
Copy the full SHA 6ccebebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d5c79d - Browse repository at this point
Copy the full SHA 6d5c79dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4742100 - Browse repository at this point
Copy the full SHA 4742100View commit details -
update multi-index (text) repr
Notes: - move the multi-index formatting logic into PandasMultiIndexingAdapter._repr_inline_ - inline repr: check for _repr_inline_ implementation first
Configuration menu - View commit details
-
Copy full SHA for 55dd9d9 - Browse repository at this point
Copy the full SHA 55dd9d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 752a405 - Browse repository at this point
Copy the full SHA 752a405View commit details
Commits on Aug 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1250ccf - Browse repository at this point
Copy the full SHA 1250ccfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bb61d9 - Browse repository at this point
Copy the full SHA 1bb61d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a551c7f - Browse repository at this point
Copy the full SHA a551c7fView commit details
Commits on Aug 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for abc3384 - Browse repository at this point
Copy the full SHA abc3384View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92c8ca4 - Browse repository at this point
Copy the full SHA 92c8ca4View commit details
Commits on Aug 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b9e1cba - Browse repository at this point
Copy the full SHA b9e1cbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60935ac - Browse repository at this point
Copy the full SHA 60935acView commit details -
get rid of multi-index virtual coordinates
Not totally yet: need to refactor set_index / reset_index
Configuration menu - View commit details
-
Copy full SHA for 3086d4e - Browse repository at this point
Copy the full SHA 3086d4eView commit details
Commits on Aug 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 54a04f7 - Browse repository at this point
Copy the full SHA 54a04f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3181d4 - Browse repository at this point
Copy the full SHA e3181d4View commit details -
collect index for multi-index level variables
Avoid re-creating the indexes for dimension variables. Collect then directly instead. Note: the change here is working for building new Datasets but I haven't checked other cases like merging different objects, etc. So I'm not sure this is the right approach.
Configuration menu - View commit details
-
Copy full SHA for 81a60f6 - Browse repository at this point
Copy the full SHA 81a60f6View commit details
Commits on Aug 26, 2021
-
wip refactor label based selection
- Index.query must now return a mapping of {dim_name: positional_indexer} as indexes may be based on several coordinates with different dimensions - Added `group_coords_by_index` utility function (not used yet, not sure we'll need it) TODO: - Update DataArray selection - Update .loc and other places using remap_label_indexers - Fix selection of multi-index that returns only scalar coordinates
Configuration menu - View commit details
-
Copy full SHA for 2e4a041 - Browse repository at this point
Copy the full SHA 2e4a041View commit details
Commits on Aug 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f387c70 - Browse repository at this point
Copy the full SHA f387c70View commit details -
fix multi-index adapter getitem scalar
Multi-index level variables now return the scalar value that corresponds to the level instead of the multi-index tuple element (all levels). Also get rid of PandasMultiIndexingAdapter.__getitem__ cache optimization, which doesn't work with level scalar values and was premature optimization anyway.
Configuration menu - View commit details
-
Copy full SHA for 6a9dbd6 - Browse repository at this point
Copy the full SHA 6a9dbd6View commit details -
wip refactor label based selection
Fixed renamed dimension in the case of multi-index -> single index Updated DataArray._overwrite_indexes Dirty fix for alignment (not tested yet)
Configuration menu - View commit details
-
Copy full SHA for 64b71c9 - Browse repository at this point
Copy the full SHA 64b71c9View commit details
Commits on Aug 30, 2021
-
wip: deeper refactoring label-based sel
Created QueryResult and MergedQueryResults classes for convenience.
Configuration menu - View commit details
-
Copy full SHA for f3116ac - Browse repository at this point
Copy the full SHA f3116acView commit details
Commits on Aug 31, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3ca6a02 - Browse repository at this point
Copy the full SHA 3ca6a02View commit details -
fix indexing PandasMultiIndexingAdapater
When level is not None: - if result is another adapter: propagate it properly - if result is a numpy adapter: use level values
Configuration menu - View commit details
-
Copy full SHA for 05c488d - Browse repository at this point
Copy the full SHA 05c488dView commit details -
refactor cast label indexer to coord dtype
Make the fix in pydata#3153 specific to pandas indexes (i.e., do not apply it to other, custom indexes). See pydata#5697 for details. This should also fix pydata#5700 although no test has been added yet (we need to refactor set_index first).
Configuration menu - View commit details
-
Copy full SHA for cc2d9c9 - Browse repository at this point
Copy the full SHA cc2d9c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1588824 - Browse repository at this point
Copy the full SHA 1588824View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8d84c7 - Browse repository at this point
Copy the full SHA a8d84c7View commit details
Commits on Sep 9, 2021
-
label-based selection tweaks and fixes
- Use a dataclass for QueryResult - Pass Variables and DataArrays indexers un-normalized to Index.query(). Indexes have the responsibility of returning the expected types for positional (dimension) indexers by adding back dimensions and coordinates if needed. - Typing fixes and tweaks
Configuration menu - View commit details
-
Copy full SHA for a6bce37 - Browse repository at this point
Copy the full SHA a6bce37View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad17931 - Browse repository at this point
Copy the full SHA ad17931View commit details -
Still needs tests Also need to address the problem of multi-index level coordinates (data adapters currently not updated). We'll probably need for `Index.rename()` to also return new index variables?
Configuration menu - View commit details
-
Copy full SHA for b894f8d - Browse repository at this point
Copy the full SHA b894f8dView commit details
Commits on Sep 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e42e324 - Browse repository at this point
Copy the full SHA e42e324View commit details -
Still need to address default indexes internal checks (these are disabled for now).
Configuration menu - View commit details
-
Copy full SHA for 5febd7f - Browse repository at this point
Copy the full SHA 5febd7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 508cdcc - Browse repository at this point
Copy the full SHA 508cdccView commit details -
Configuration menu - View commit details
-
Copy full SHA for f1535a3 - Browse repository at this point
Copy the full SHA f1535a3View commit details
Commits on Sep 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d5cc3b4 - Browse repository at this point
Copy the full SHA d5cc3b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 021090f - Browse repository at this point
Copy the full SHA 021090fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0086e32 - Browse repository at this point
Copy the full SHA 0086e32View commit details
Commits on Sep 14, 2021
-
- Refactor reset_index - Improve creating new xarray indexes from pandas indexes with proper propagation of variable metadata (dtype, attrs, encoding)
Configuration menu - View commit details
-
Copy full SHA for a891e22 - Browse repository at this point
Copy the full SHA a891e22View commit details -
Configuration menu - View commit details
-
Copy full SHA for e50978e - Browse repository at this point
Copy the full SHA e50978eView commit details
Commits on Sep 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8b1e4d5 - Browse repository at this point
Copy the full SHA 8b1e4d5View commit details -
.sel() with multi-index: return scalar coords
..instead of dropping those coordinates Closes pydata#1408 once tests are fixed/updated
Configuration menu - View commit details
-
Copy full SHA for e2075b7 - Browse repository at this point
Copy the full SHA e2075b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fbdc86 - Browse repository at this point
Copy the full SHA 4fbdc86View commit details -
Some changes: Multi-indexes are created only if the stacked dimensions each have a single coordinate index. In the other cases, multi-indexes are not created, which means that it is an irreversible operation (unstack will not work) Multi-indexes are created from the stacked coordinate variables and not anymore from the unstacked dimension indexes (level product). There's a significant decrease in performance but it is probably acceptable since it's now possible to avoid the creation of multi-indexes. It is possible to stack a dimension with a multi-index, but it drops the index. Otherwise it would make it hard for unstack() to figure out what's going on. It makes it clear that this is an irreversible operation.
Configuration menu - View commit details
-
Copy full SHA for ef6fbbd - Browse repository at this point
Copy the full SHA ef6fbbdView commit details -
stack: better rule for add/skip multi-index
It is more robust and allows creating a multi-index from non-default (non-dimension) coordinates, as long as there's one and only one 1-d indexed coordinate for each dimension to stack.
Configuration menu - View commit details
-
Copy full SHA for 8bc2590 - Browse repository at this point
Copy the full SHA 8bc2590View commit details
Commits on Sep 16, 2021
-
add utility methods to class Indexes
This removes some ugly & duplicate patterns.
Configuration menu - View commit details
-
Copy full SHA for 64df1e9 - Browse repository at this point
Copy the full SHA 64df1e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for da8846d - Browse repository at this point
Copy the full SHA da8846dView commit details -
stack: revert to old way of creating multi-index unstack: support non-default (non-dimension) multi-index (as long as there is exactly one multi-index per specified dimension)
Configuration menu - View commit details
-
Copy full SHA for 28ecad6 - Browse repository at this point
Copy the full SHA 28ecad6View commit details
Commits on Sep 23, 2021
-
add PandasMultiIndex.from_product_variables
Refactored utils.multiindex_from_product_levels utility function into a new PandasMultiIndex classmethod.
Configuration menu - View commit details
-
Copy full SHA for e62b9cd - Browse repository at this point
Copy the full SHA e62b9cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f7aca70 - Browse repository at this point
Copy the full SHA f7aca70View commit details
Commits on Sep 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e44c56e - Browse repository at this point
Copy the full SHA e44c56eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f88c2c2 - Browse repository at this point
Copy the full SHA f88c2c2View commit details -
functools.cached_property is since py38
Use the good old way as we still support py37
Configuration menu - View commit details
-
Copy full SHA for 1daaf8d - Browse repository at this point
Copy the full SHA 1daaf8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41ebc45 - Browse repository at this point
Copy the full SHA 41ebc45View commit details -
fix ipython key completion test
make sure the stacked dataset used has a multi-index
Configuration menu - View commit details
-
Copy full SHA for e750883 - Browse repository at this point
Copy the full SHA e750883View commit details
Commits on Sep 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6c6f09e - Browse repository at this point
Copy the full SHA 6c6f09eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6437e13 - Browse repository at this point
Copy the full SHA 6437e13View commit details
Commits on Oct 13, 2021
-
add Index.create_variables() method
This will probably be used instead of including index coordinate variables in the signature (return type) of many methods of ``Index``. It has several advantages: - More DRY, and for custom indexes that do not need to create coordinate variables with special data adapters, it's easier to just skip implementing this method and not bother with returning empty dicts in other methods - This allows to decouple index vs. coordinates creation. For many cases this can be done at the same time but for some cases like alignment this is useful - It's a more elegant solution when we need to propagate metadata (attrs, encoding)
Configuration menu - View commit details
-
Copy full SHA for a955d45 - Browse repository at this point
Copy the full SHA a955d45View commit details -
improve Dataset/DataArray indexes proxy class
One possible solution to the recurring problem of accessing coordinate variables related to a given index in some of Xarray's internals. I feel that the ``Indexes`` proxy is the right place for storing references to those indexed coordinate variables. It's safer than relying on a public attribute/property of ``Index``.
Configuration menu - View commit details
-
Copy full SHA for c87586e - Browse repository at this point
Copy the full SHA c87586eView commit details -
align Indexes API with Coordinates API
Expose similar properties: - variables - dims
Configuration menu - View commit details
-
Copy full SHA for db65e44 - Browse repository at this point
Copy the full SHA db65e44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 417f1f4 - Browse repository at this point
Copy the full SHA 417f1f4View commit details
Commits on Oct 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 929b8f3 - Browse repository at this point
Copy the full SHA 929b8f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02cc5d2 - Browse repository at this point
Copy the full SHA 02cc5d2View commit details
Commits on Oct 15, 2021
-
- Some fixes and clean-up in new implementation of align - Add Index.join method (only for inner/outer join) - Tweak index generic types - IndexVars type: use Variable instead of IndexVariable (IndexVariable may eventually be dropped)
Configuration menu - View commit details
-
Copy full SHA for d1bbc4a - Browse repository at this point
Copy the full SHA d1bbc4aView commit details
Commits on Oct 18, 2021
-
wip refactor alignment and reindex
Imported all re-indexing logic into the `Alignator` class, which can be reused directly for both `align()` and `obj.reindex()`. TODO: - import override indexes into `Alignator` - connect Alignator to public API entry points - clean-up (remove old implementation functions)
Configuration menu - View commit details
-
Copy full SHA for 0624204 - Browse repository at this point
Copy the full SHA 0624204View commit details
Commits on Oct 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 30fee83 - Browse repository at this point
Copy the full SHA 30fee83View commit details -
Configuration menu - View commit details
-
Copy full SHA for 981fa0d - Browse repository at this point
Copy the full SHA 981fa0dView commit details
Commits on Oct 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 79b5223 - Browse repository at this point
Copy the full SHA 79b5223View commit details
Commits on Oct 21, 2021
-
refactor alignment fix tests & types annotations
All `*align*` and `*reindex*` tests are passing! (locally) Mypy doesn't complain. TODO: refactor `interp` and `interp_like` (I only plan to fix it with the new Aligner class for now)
Configuration menu - View commit details
-
Copy full SHA for 63a4291 - Browse repository at this point
Copy the full SHA 63a4291View commit details -
refactor interp and interp_like
It now reuses the new alignment/reindex internals, but it still only supports dimension coordinates with a single index,
Configuration menu - View commit details
-
Copy full SHA for 9f8d26d - Browse repository at this point
Copy the full SHA 9f8d26dView commit details
Commits on Oct 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f291c65 - Browse repository at this point
Copy the full SHA f291c65View commit details
Commits on Oct 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8e3eef2 - Browse repository at this point
Copy the full SHA 8e3eef2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e5abb7 - Browse repository at this point
Copy the full SHA 5e5abb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c11dbc - Browse repository at this point
Copy the full SHA 2c11dbcView commit details
Commits on Oct 27, 2021
-
add Index.stack and Index.unstack methods
Also added a `index_cls` parameter to `Dataset.stack` and `DataArray.stack`. Custom indexes may thus implement their own logic for stack/unstack, with the current limitation that a `pandas.MultiIndex` is still explicitly required for unstack optimized versions.
Configuration menu - View commit details
-
Copy full SHA for e65e3f3 - Browse repository at this point
Copy the full SHA e65e3f3View commit details -
fix PandasIndex.isel with scalar indexers
Fix concat tests and some groupby tests
Configuration menu - View commit details
-
Copy full SHA for d02dc17 - Browse repository at this point
Copy the full SHA d02dc17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 557e8b1 - Browse repository at this point
Copy the full SHA 557e8b1View commit details
Commits on Oct 28, 2021
-
more indexes invariants checks
Check consistency between PandasIndex objects and coordinate variables data adapters (PandasIndexingAdapter).
Configuration menu - View commit details
-
Copy full SHA for 15f6b17 - Browse repository at this point
Copy the full SHA 15f6b17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29035aa - Browse repository at this point
Copy the full SHA 29035aaView commit details -
refactor Dataset/DataArray copy
Filter indexes and preserve unique index objects for multi-coordinate indexes. Also fixed indexes tests (stack/unstack).
Configuration menu - View commit details
-
Copy full SHA for 2a067bd - Browse repository at this point
Copy the full SHA 2a067bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8e7a06 - Browse repository at this point
Copy the full SHA c8e7a06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9963520 - Browse repository at this point
Copy the full SHA 9963520View commit details -
propagate_indexes -> filter_indexes_from_coords
We can't just look at excluded dimensions anymore...
Configuration menu - View commit details
-
Copy full SHA for e0f498a - Browse repository at this point
Copy the full SHA e0f498aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7901404 - Browse repository at this point
Copy the full SHA 7901404View commit details
Commits on Oct 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 26bc7c9 - Browse repository at this point
Copy the full SHA 26bc7c9View commit details
Commits on Nov 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5da11f4 - Browse repository at this point
Copy the full SHA 5da11f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0b08c1 - Browse repository at this point
Copy the full SHA e0b08c1View commit details -
Check in merge that prioritized elements won't corrupt collected indexes.
Configuration menu - View commit details
-
Copy full SHA for fbf556c - Browse repository at this point
Copy the full SHA fbf556cView commit details
Commits on Nov 3, 2021
-
Fixes and tweaks Refactored assign, update, setitem, delitem, drop_vars Added or updated tests
Configuration menu - View commit details
-
Copy full SHA for ef3feb6 - Browse repository at this point
Copy the full SHA ef3feb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52da324 - Browse repository at this point
Copy the full SHA 52da324View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78f4fb0 - Browse repository at this point
Copy the full SHA 78f4fb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4dcb136 - Browse repository at this point
Copy the full SHA 4dcb136View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72aff10 - Browse repository at this point
Copy the full SHA 72aff10View commit details
Commits on Nov 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c0eb3dd - Browse repository at this point
Copy the full SHA c0eb3ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34749b2 - Browse repository at this point
Copy the full SHA 34749b2View commit details -
PandasIndex.from_variables: preserve wrapped index
Prevent converting special index types like ``pd.CategoricalIndex`` when such objects are wrapped in xarray variables.
Configuration menu - View commit details
-
Copy full SHA for ef952b2 - Browse repository at this point
Copy the full SHA ef952b2View commit details
Commits on Feb 2, 2022
-
Merge branch 'main' of https://github.com/pydata/xarray into explicit…
…-indexes-variables
Configuration menu - View commit details
-
Copy full SHA for adcec91 - Browse repository at this point
Copy the full SHA adcec91View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 1d6694a - Browse repository at this point
Copy the full SHA 1d6694aView commit details
Commits on Feb 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ebb2605 - Browse repository at this point
Copy the full SHA ebb2605View commit details
Commits on Feb 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5c3ff55 - Browse repository at this point
Copy the full SHA 5c3ff55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e8690a - Browse repository at this point
Copy the full SHA 8e8690aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93c3f69 - Browse repository at this point
Copy the full SHA 93c3f69View commit details -
implicit multi-index coord: more robust fix
Also cover the cases where indexes are equal but not identical (caused a couple of tests failing). Perfs may not be a concern for such edge case?
Configuration menu - View commit details
-
Copy full SHA for 3316ee4 - Browse repository at this point
Copy the full SHA 3316ee4View commit details
Commits on Feb 9, 2022
-
Merge branch 'main' of https://github.com/pydata/xarray into explicit…
…-indexes-variables
Configuration menu - View commit details
-
Copy full SHA for f9a0424 - Browse repository at this point
Copy the full SHA f9a0424View commit details -
backward compat fix: multi-index given as data-var
... in Dataset constructor
Configuration menu - View commit details
-
Copy full SHA for f2b25f5 - Browse repository at this point
Copy the full SHA f2b25f5View commit details -
Summary: - Add the ``Index.concat()`` class method with implementations for ``PandasIndex`` and ``PandasMultiIndex`` (adapted from ``IndexVariable.concat()``). - Use ``Index.concat()`` to create new indexes (and their corresponding variables) in ``_dataset_concat``. Fallback to variable concatenation (with default index) when no implementation is given for ``Index.concat`` or when no all the variables have an index. - Refactored merging the other variables (also merge the indexes) in ``_dataset_concat``. This refactor is incomplete. It should work with Pandas (multi-)indexes but it is likely that it won't work with meta-indexes involving multiple dimensions. We probably need to update ``_calc_concat_over`` to take into account such meta-indexes and their related coordinates. Other limitation (?) we use here the index of the 1st dataset for the concatenation (i.e., ``Index.concat``). No specific check is made on the type and/or coordinates of the other indexes.
Configuration menu - View commit details
-
Copy full SHA for 627a001 - Browse repository at this point
Copy the full SHA 627a001View commit details
Commits on Feb 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ba1c75f - Browse repository at this point
Copy the full SHA ba1c75fView commit details -
PandasIndex.from_variables(multi-index level var)
Make sure it gets the level index (not the whole multi-index).
Configuration menu - View commit details
-
Copy full SHA for 3371623 - Browse repository at this point
Copy the full SHA 3371623View commit details -
reindex: disable invalid dimension check
From the docstrings: mis-matched dimensions are simply ignored
Configuration menu - View commit details
-
Copy full SHA for 8fec03c - Browse repository at this point
Copy the full SHA 8fec03cView commit details
Commits on Feb 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d76be3d - Browse repository at this point
Copy the full SHA d76be3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b78f4b - Browse repository at this point
Copy the full SHA 3b78f4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ce000e - Browse repository at this point
Copy the full SHA 7ce000eView commit details -
unstack: return copies of mindex.levels
Fix error when trying to set the name of the extracted level indexes.
Configuration menu - View commit details
-
Copy full SHA for 5fa287f - Browse repository at this point
Copy the full SHA 5fa287fView commit details -
strip_units: prevent index->array conversion
which caused alignment conflicts due to multi-index variable converted to non-index variable.
Configuration menu - View commit details
-
Copy full SHA for 11bf070 - Browse repository at this point
Copy the full SHA 11bf070View commit details -
attach_units: do not preserve coord multi-indexes
To prevent conflicts when trying to implicitly create multi-index coordinates.
Configuration menu - View commit details
-
Copy full SHA for 35a7464 - Browse repository at this point
Copy the full SHA 35a7464View commit details
Commits on Feb 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for cfb0cf1 - Browse repository at this point
Copy the full SHA cfb0cf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cc1253 - Browse repository at this point
Copy the full SHA 8cc1253View commit details -
Dataset.copy: don't reset indexes if data is given
The `data` parameter accepts new data for data variables only, it won't affect the indexes.
Configuration menu - View commit details
-
Copy full SHA for ead47a2 - Browse repository at this point
Copy the full SHA ead47a2View commit details -
reindex/align: fix coord dtype of new indexes
Use `as_compatible_data` to get the right dtype to assign to the new index coordinates created from reindex indexers.
Configuration menu - View commit details
-
Copy full SHA for 23dc4cf - Browse repository at this point
Copy the full SHA 23dc4cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b325ef - Browse repository at this point
Copy the full SHA 8b325efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8528377 - Browse repository at this point
Copy the full SHA 8528377View commit details -
to_stacked_array: do not coerce level dtypes
If the intent was to propagate the original coordinate dtypes, this is now handled by PandasMultiIndex.stack. This fixes the case where multi-index ``.levels`` do not return labels with "nan" values (if any) but where the coordinate does, which resulted in dtype mismatch between the coordinate variable dtype (e.g., coerced to int64) and the actual label values (float64 due to nan values), eventually causing numpy errors trying to coerce nan value to int64 when indexing the coordinate.
Configuration menu - View commit details
-
Copy full SHA for 30023a4 - Browse repository at this point
Copy the full SHA 30023a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7fed29 - Browse repository at this point
Copy the full SHA d7fed29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76e15ef - Browse repository at this point
Copy the full SHA 76e15efView commit details -
Configuration menu - View commit details
-
Copy full SHA for d69bb45 - Browse repository at this point
Copy the full SHA d69bb45View commit details -
unstack full-reindex: fix alignment errors
We need a mapping of all index coordinate names to the full index so that Aligner can find matching indexes. (Note: reindex may eventually be refactored to be a bit more clever so that providing only a `{dim: indexer}` will be enough in this case?)
Configuration menu - View commit details
-
Copy full SHA for 44e6893 - Browse repository at this point
Copy the full SHA 44e6893View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50bd989 - Browse repository at this point
Copy the full SHA 50bd989View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1184f50 - Browse repository at this point
Copy the full SHA 1184f50View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed7f24b - Browse repository at this point
Copy the full SHA ed7f24bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ffa06da - Browse repository at this point
Copy the full SHA ffa06daView commit details
Commits on Feb 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7c08769 - Browse repository at this point
Copy the full SHA 7c08769View commit details -
rename Index.query -> Index.sel
Also rename: - QueryResult -> IndexSelResult - merge_query_results -> merge_sel_results
Configuration menu - View commit details
-
Copy full SHA for 71ac97a - Browse repository at this point
Copy the full SHA 71ac97aView commit details -
remove Index.union and Index.intersection
Those are not used elsewhere. ``Index.join`` is used instead for alignment.
Configuration menu - View commit details
-
Copy full SHA for 7600e46 - Browse repository at this point
Copy the full SHA 7600e46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b6c97d - Browse repository at this point
Copy the full SHA 1b6c97dView commit details -
Index.rename: return only the new index
Create new coordinate variables using Index.create_variables instead (get rid of PandasIndex.from_pandas_index).
Configuration menu - View commit details
-
Copy full SHA for eda0e85 - Browse repository at this point
Copy the full SHA eda0e85View commit details -
Index.stack: return only the new index
Create new coordinate variables using Index.create_variables instead (get rid of PandasIndex.from_pandas_index)
Configuration menu - View commit details
-
Copy full SHA for 24d7719 - Browse repository at this point
Copy the full SHA 24d7719View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aea2e3 - Browse repository at this point
Copy the full SHA 2aea2e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32d887c - Browse repository at this point
Copy the full SHA 32d887cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 851a942 - Browse repository at this point
Copy the full SHA 851a942View commit details -
Index.from_variables: return the new index only
Use Index.create_variables to get the new coordinate variables.
Configuration menu - View commit details
-
Copy full SHA for 3134f33 - Browse repository at this point
Copy the full SHA 3134f33View commit details -
rename: propagate_attrs_encoding not needed
Index.create_variables already propagates coordinate variable metadata.
Configuration menu - View commit details
-
Copy full SHA for 9bbf659 - Browse repository at this point
Copy the full SHA 9bbf659View commit details
Commits on Feb 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for af34834 - Browse repository at this point
Copy the full SHA af34834View commit details -
Level variables may have updated names in this case: single index + one level.
Configuration menu - View commit details
-
Copy full SHA for fe4fcc5 - Browse repository at this point
Copy the full SHA fe4fcc5View commit details -
refactor default_indexes and re-enable invariant check
Default indexes invariant check is now optional (enabled by default).
Configuration menu - View commit details
-
Copy full SHA for df31fa8 - Browse repository at this point
Copy the full SHA df31fa8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 631a8e2 - Browse repository at this point
Copy the full SHA 631a8e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21fa7a8 - Browse repository at this point
Copy the full SHA 21fa7a8View commit details -
Dataset._indexes, DataArray._indexes: always dict
Default indexes are created by the default constructors. Indexes are always passed explicitly by the fastpath constructors.
Configuration menu - View commit details
-
Copy full SHA for f573085 - Browse repository at this point
Copy the full SHA f573085View commit details -
It was only used for plotting and has been replaced by simpler logic.
Configuration menu - View commit details
-
Copy full SHA for 3280eeb - Browse repository at this point
Copy the full SHA 3280eebView commit details
Commits on Feb 17, 2022
-
Use ``_indexes`` instead of ``.xindexes`` when possible, for speed. ``xindexes`` is not cached: it would return inconsistent results if updating the object in-place. Fix some types.
Configuration menu - View commit details
-
Copy full SHA for a415188 - Browse repository at this point
Copy the full SHA a415188View commit details -
optimize Dataset/DataArray copy
Avoid copying pandas indexes twice (indexes + coordinate variables)
Configuration menu - View commit details
-
Copy full SHA for 6405ffd - Browse repository at this point
Copy the full SHA 6405ffdView commit details -
add default implementation for Index.copy
Better than raising an error?
Configuration menu - View commit details
-
Copy full SHA for 2b1f90b - Browse repository at this point
Copy the full SHA 2b1f90bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73ba9d4 - Browse repository at this point
Copy the full SHA 73ba9d4View commit details -
This will need more work (in a follow-up PR) to be consistent with the other data model components (i.e., coordinates and data variables): add summary (inline) and detailed reprs, maybe group by coordinates, etc.
Configuration menu - View commit details
-
Copy full SHA for 3927479 - Browse repository at this point
Copy the full SHA 3927479View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3173b5 - Browse repository at this point
Copy the full SHA a3173b5View commit details
Commits on Feb 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 709a58e - Browse repository at this point
Copy the full SHA 709a58eView commit details
Commits on Feb 21, 2022
-
DataArray stack test: revert to original
Now that default (range) indexes are created again (create_index=True).
Configuration menu - View commit details
-
Copy full SHA for ed1af4d - Browse repository at this point
Copy the full SHA ed1af4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9708eb3 - Browse repository at this point
Copy the full SHA 9708eb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f57db5 - Browse repository at this point
Copy the full SHA 7f57db5View commit details -
Configuration menu - View commit details
-
Copy full SHA for df64f0d - Browse repository at this point
Copy the full SHA df64f0dView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for a9add15 - Browse repository at this point
Copy the full SHA a9add15View commit details
Commits on Mar 7, 2022
-
Access aligned objects through the ``.result`` attribute. Enable type checking in internal methods.
Configuration menu - View commit details
-
Copy full SHA for f807733 - Browse repository at this point
Copy the full SHA f807733View commit details -
remove assert_unique_multiindex_level_names
It is not needed anymore as multi-indexes have their own coordinates and we now check for possible name conflicts when "unpacking" multi-index levels at Dataset / DataArray creation.
Configuration menu - View commit details
-
Copy full SHA for e97653e - Browse repository at this point
Copy the full SHA e97653eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72d0782 - Browse repository at this point
Copy the full SHA 72d0782View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f24faf - Browse repository at this point
Copy the full SHA 4f24fafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 601dc3a - Browse repository at this point
Copy the full SHA 601dc3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bf582b - Browse repository at this point
Copy the full SHA 5bf582bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf0dbb7 - Browse repository at this point
Copy the full SHA bf0dbb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1baa875 - Browse repository at this point
Copy the full SHA 1baa875View commit details
Commits on Mar 11, 2022
-
concat: remove fall-backs to Variable.concat
Raise an error instead when trying to concat a mix of indexed and un-indexed coordinates or when the index doesn't support concat. We still support the concatenation of a mix of scalar and dimension indexed coordinates by creating a PandasIndex on-the-fly for scalar coordinates.
Configuration menu - View commit details
-
Copy full SHA for c1b778a - Browse repository at this point
Copy the full SHA c1b778aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77fdaf0 - Browse repository at this point
Copy the full SHA 77fdaf0View commit details