home / github

Menu
  • GraphQL API
  • Search all tables

commits

Table actions
  • GraphQL API for commits

41 rows where author = 4160723 sorted by author_date descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: raw_author, raw_committer, committer, author_date (date), committer_date (date)

repo 1

  • xarray 41

author 1

  • benbovy · 41 ✖
sha message author_date ▲ committer_date raw_author raw_committer repo author committer
f9f4c730254073f0f5a8fce65f4bbaa0eefec5fd Fix multiindex level serialization after reset_index (#8672) * fix serialize multi-index level coord after reset * add regression test * update what's new --------- Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> 2024-01-31T17:42:28Z 2024-01-31T17:42:28Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
e2b6f3468ef829b8a83637965d34a164bf3bca78 dirty workaround for mypy 1.5 error (#8142) Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> 2023-09-07T08:21:11Z 2023-09-07T08:21:11Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
f13da94db8ab4b564938a5e67435ac709698f1c9 fix doctests: pandas 2.1 MultiIndex repr with nan (#8141) Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com> 2023-09-05T08:35:36Z 2023-09-05T08:35:36Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
71177d481eb0c3547cb850a4b3e866af6d4fded7 Add `Coordinates.assign()` method (#8102) * add Coordinates.assign method * update what's new * test typing Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> * add docstring examples * fix doctests * fix doctests (spaces) * doctests typo again * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix assign test after merging main --------- Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> 2023-09-01T13:28:16Z 2023-09-01T13:28:16Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
0f9f790c7e887bbfd13f4026fd1d37e4cd599ff1 Better default behavior of the Coordinates constructor (#8107) * ``Coordinates.__init__`` create default indexes ... for any input dimension coordinate, if ``indexes=None``. Also, if another ``Coordinates`` object is passed, extract its indexes and raise if ``indexes`` is not None (no align/merge supported here). * add docstring examples * fix doctests * fix tests * update what's new 2023-08-31T07:35:46Z 2023-08-31T07:35:46Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
b136fcb679e9e70fd44b60688d96e75d4e3f8dcb Fix merge with compat=minimal (coord names) (#8104) * fix coord names after merge / compat minimal * update what's new * add assert in len(data_vars) 2023-08-30T07:57:35Z 2023-08-30T07:57:35Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
e5a38f6837ae9b9aa28a4bd063620a1cd802e093 better error message set index from scalar coord (#8109) 2023-08-30T07:13:15Z 2023-08-30T07:13:15Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
1fedfd86604f87538d1953b01d6990c2c89fcbf3 Refactor update coordinates to better handle multi-coordinate indexes (#8094) * generic warning implicitly wrap a pd.MultiIndex * refactor update_coords (assign) Fix more cases with multi-coordinate indexes: - do not try to align existing indexed coordinates with the new coordinates that will fully replace them - raise early if the new coordinates would corrupt the existing indexed coordinates - isolate PandasMultiIndex special cases so that it will be easier to drop support for it later (and warn now about deprecation) * fix alignment of updated coordinates when DataArray objects are passed as new coordinate objects * refactor Dataset.assign Need to update (replace) coordinates and data variables separately to ensure it goes through all (indexed) coordinate update checks. * fix and update tests * nit * fix mypy? * update what's new * fix import error * fix performance regression * nit * use warning util func and improve messages 2023-08-29T14:23:28Z 2023-08-29T14:23:28Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
4441f9915fa978ad5b276096ab67ba49602a09d2 Expose "Coordinates" as part of Xarray's public API (#7368) * add indexes argument to Dataset.__init__ * make indexes arg public for DataArray.__init__ * Indexes constructor updates - easily create an empty Indexes collection - check consistency between indexes and variables * use the generic Mapping[Any, Index] for indexes * add wrap_pandas_multiindex function * do not create default indexes when not desired * fix Dataset dimensions TODO: check indexes shapes / dims for DataArray * copy the coordinate variables of passed indexes * DataArray: check dimensions/shape of index coords * docstrings tweaks * more Indexes safety Since its constructor can now be used publicly. Copy input mappings and check the type of input indexes. * ensure input indexes are Xarray indexes * add .assign_indexes() method * add `IndexedCoordinates` subclass + add `IndexedCoordinates.from_pandas_multiindex` helper. * rollback/update Dataset and DataArray constructors Drop the `indexes` argument or keep it as private API. When a `Coordinates` object is passed as `coords` argument, extract both coordinate variables and indexes and add them to the new Dataset or DataArray. * update docstrings * fix Dataset creation internal error * add IndexedCoordinates.merge_coords * drop IndexedCoordinates and reuse Coordinates * update api docs * make Coordinates init args optional * docstrings updates * convert to base variable when no index is given * raise when an index is given with no variable * skip create default indexes... ... When a Coordinates object is given to the Dataset constructor * invariant checks: maybe skip IndexVariable checks ... when check_default_indexes is False. * add Coordinates tests * more Coordinates tests * add Dataset constructor tests with Coordinates * fix mypy * assign_coords: do not create default indexes... ... when passing a Coordinates object * support alignment of Coordinates * clean-up … 2023-07-21T20:40:03Z 2023-07-21T20:40:03Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
7234603781768728b3fd544cdcaca991466d4a44 Add documentation on custom indexes (#6975) * improve Index base class type annotations Use T_Index generic when possible. * import Index base class in Xarray root namespace * import IndexSelResult into Xarray root namespace * wip: Index API docstrings * wip: doc: add how to add custom index section * add Index method docstrings * add user guide on how to create a custom index * review comments + tweaks * update what's new * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply uncontroversial suggestions from Deepak's code review Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply more suggestions from code review Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> * Link to source code for PandasIndex and PandasMultiIndex --------- Co-authored-by: Thomas Nicholas <thomas.nicholas@columbia.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> 2023-07-17T23:23:21Z 2023-07-17T23:23:21Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
d6d24507793af9bcaed79d7f8d3ac910e176f1ce Some alignment optimizations (#7382) * compare indexes: return early if all same objects This may happen in some (rare?) cases where the objects to align share the same indexes. * avoid re-indexing when not needed If all unindexed dimension sizes match the indexed dimension sizes in the objects to align, we don't need re-indexing. * add benchmark * update what's new Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com> 2023-01-05T21:25:55Z 2023-01-05T21:25:55Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
8938d390a969a94275a4d943033a85935acbce2b Fix assign_coords resetting all dimension coords to default index (#7347) * fix merge_coords and collect_variables_and_indexes * add test * update what's new * update what's new with pull-request link 2022-12-02T16:32:40Z 2022-12-02T16:32:40Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
f93b467db5e35ca94fefa518c32ee9bf93232475 Fix to_index(): return multiindex level as single index (#7105) * to_index(): return multiindex level as single index * try fix broken tests Add Variable._to_index method used internally and returns multi-index for level variables. * fix groupby test Add DataArray._to_index * one small comment * update release notes * fix docs * refactor / move safe_cast_to_index 2022-10-12T14:12:47Z 2022-10-12T14:12:47Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
513ee34f16cc8f9250a72952e33bf9b4c95d33d1 Fix Dataset.assign_coords overwriting multi-index (#7101) 2022-09-28T18:02:14Z 2022-09-28T18:02:14Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
e678a1d7884a3c24dba22d41b2eef5d7fe5258e7 Add set_xindex and drop_indexes methods (#6971) * temporary API to set custom indexes * add the temporary index API to DataArray * add options argument to Index.from_variables() It allows passing options to the constructor of a custom index class (if any). The **options arguments of Dataset.set_xindex() are passed through. Also add type annotations to set_xindex(). * fix mypy * remove temporary API warning * add the Index class in Xarray's root namespace * improve set_xindex docstrings and add to api.rst * remove temp comments * special case for pandas multi-index dim coord * add tests for set_xindex * error message tweaks * set_xindex with 1 coord: avoid reodering coords * mypy fixes * add Dataset and DataArray drop_indexes methods * improve assert_no_index_corrupted error msg * drop_indexes: add tests * add drop_indexes to api.rst * improve docstrings of legacy methods * add what's new entry * try using correct typing w/o mypy complaining * make index_cls arg optional Try setting a pandas (multi-)index by default. * docstrings fixes and tweaks * make Index.from_variables options arg keyword only * improve set_xindex invalid coordinates error msg * add xarray.indexes namespace * type tweaks Co-authored-by: Keewis <keewis@posteo.de> 2022-09-28T07:25:15Z 2022-09-28T07:25:15Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
a042ae69c0444912f94bb4f29c93fa05046893ed Review (re)set_index (#6992) * review reset_index + tests Restore old behavior, i.e., - drop the multi-index dimension name (even if drop=False) unless reset_index still returns a multi-index - rename the level coordinate to the dimension name if the multi-index is reduced to a single index - drop the whole multi-index if its dimension coordinate is given as argument Fix IndexVariable -> Variable conversion * reset_index: fix dropped dimension(s) * reset_index: fix other tests * review set_index - Convert the coordinates left unindexed from IndexVariable to Variable - Keep multi-index coordinates next to each other in a consistent order * set_index with single index: preserve coord order * update what's new 2022-09-27T10:35:37Z 2022-09-27T10:35:37Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
45c0a114e2b7b27b83c9618bc05b36afac82183c Raise UserWarning when rename creates a new dimension coord (#6999) * warn when rename creates a new dimension coord UseWarning: no index is created anymore. * update what's new 2022-09-27T09:33:40Z 2022-09-27T09:33:40Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
9d1499e22e2748eeaf088e6a2abc5c34053bf37c misc. fixes for Indexes with pd.Index objects (#7003) 2022-09-23T07:30:37Z 2022-09-23T07:30:37Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
4880012ddee9e43e3e18e95551876e9c182feafb Fix aligned index variable metadata side effect (#6857) * alignment: fix index variable metadata side effect * add regression test * assert no side effect on original objects * update what's new Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> 2022-08-31T07:16:14Z 2022-08-31T07:16:14Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
facafac359c39c3e940391a3829869b4a3df5d70 Fix concat with scalar coordinate (wrong index type) (#6443) 2022-04-06T01:19:47Z 2022-04-06T01:19:47Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
d8fc34660f409d4c6a7ce9fe126d126e4f76c7fd Speed-up multi-index html repr + add display_values_threshold option (#6400) * add _repr_html_ for PandasMultiIndexingAdapter This may greatly speed-up the html repr of Xarray objects with multi-indexes This optimized _repr_html_ is now used for formatting the array detailed view of multi-index coordinates, instead of converting the full index / levels to numpy arrays before formatting it. * update release notes * nit * add display_values_threshold * fix last merge main 2022-03-29T07:05:31Z 2022-03-29T07:05:31Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
009b15461bf1ad4567e57742e44db4efa4e44cc7 Fix concat scalar coord dtype (#6418) 2022-03-28T16:05:00Z 2022-03-28T16:05:00Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
321c5608a3be3cd4b6a4de3b658d1e2d164c0409 fix DataArray groupby returning a Dataset (#6394) 2022-03-21T15:26:20Z 2022-03-21T15:26:20Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
c604ee1fe852d51560100df6af79b4c28660f6b5 reindex: fix missing variable metadata (#6389) 2022-03-21T07:53:04Z 2022-03-21T07:53:04Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
83f238a05a82fc85dcd7346f758ba3bea0416181 Fix concat with scalar coordinate (#6385) 2022-03-21T04:49:22Z 2022-03-21T04:49:22Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
067b2e86e6311e9c37e0def0c83cdb9a1a367a74 isel: convert IndexVariable to Variable if index is dropped (#6388) 2022-03-21T04:47:47Z 2022-03-21T04:47:47Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
fed852073eee883c0ed1e13e28e508ff0cf9d5c1 fix dataset groupby combine dataarray func (#6386) Dataset._overwrite_indexes and DataArray._overwrite_indexes have different parameter names (for consistency with other internals). 2022-03-20T18:55:25Z 2022-03-20T18:55:25Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
03b6ba1e779b0d1829ca7b2e8f5da4d9c39ece6f fix concat with variable or dataarray as dim (#6387) Propagate attrs. 2022-03-20T18:53:46Z 2022-03-20T18:53:46Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
3ead17ea9e99283e2511b65b9d864d1c7b10b3c4 Explicit indexes (#5692) * no need to wrap pandas index in lazy index adapter * multi-index default level names * refactor setting Dataset/DataArray default indexes * update multi-index (text) repr Notes: - move the multi-index formatting logic into PandasMultiIndexingAdapter._repr_inline_ - inline repr: check for _repr_inline_ implementation first * remove print * minor fixes and improvements * fix dtype of index variables created from Index * fix multi-index selection regression See https://github.com/pydata/xarray/issues/5691 * check conflicting multi-index level names * update formatting (text and html) * check level name conflicts for midx given as coord * intended behavior or unwanted side effect? see #5732 * get rid of multi-index virtual coordinates Not totally yet: need to refactor set_index / reset_index * add level coords in indexes & keep coord order * fix copying multi-index level variable data * 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. * 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 * fix index query tests * 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, … 2022-03-17T17:11:40Z 2022-03-17T17:11:40Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
4bb9d9c6df77137f05e85c7cc6508fe7a93dc0e4 Refactor index vs. coordinate variable(s) (#5636) * split index / coordinate variable(s) - Pass Variable objects to xarray.Index constructor - The index should create IndexVariable objects (`coords` attribute) - PandasIndex: IndexVariable wraps PandasIndexingAdpater wraps pd.Index * one PandasIndexingAdapter subclass for multiindex * fastpath Index init + from_pandas_index classmethods * use classmethod constructors instead * add Index.copy and Index.__getitem__ methods * wip: clean-up Revert some changes made in #5102 + additional (temporary) fixes. * clean-up * add PandasIndex and PandasMultiIndex tests * remove unused import * doc: update what's new * use xindexes in map_blocks + temp fix Dataset constructor doesn't accept xarray indexes yet. Create new coordinates from the underlying pandas indexes. * update what's new with #5670 * typo 2021-08-09T07:56:56Z 2021-08-09T07:56:56Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
9daf9b13648c9a02bddee3640b80fe95ea1fff61 Internal refactor of label-based data selection (#5322) * xindexes also returns multi-index levels as keys * wip: move label selection into PandasIndex add Index.query() method split pd.Index vs. pd.MultiIndex logic * Revert "xindexes also returns multi-index levels as keys" This reverts commit 261fb7880523db79b5bc3715477374d089e9a574. Let's keep this for later. There are too many places in Xarray that assume that xindexes keys are dimension names. * fix broken tests * remove old code + move/update tests * remove duplicate function * add PandasMultiIndex class + refactor query impl * remove PandasIndex.from_variables for now Add it later in the refactoring when it will be needed elsewhere (e.g., in ``set_index``). * fix broken tests Is this what we want? * prevent loading values for xarray objs in slice * update what's new 2021-06-08T09:35:54Z 2021-06-08T09:35:54Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
2b38adc1bdd1dd97934fb061d174149c73066f19 Cast PandasIndex to pd.(Multi)Index (#5385) * fastpath cast Xarray's PandasIndex to pd.Index Also make sure that a multi-index with one unique level are not cast to a simple pd.Index * update tests * [skip-ci] update what's new 2021-05-28T08:28:11Z 2021-05-28T08:28:11Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
6e14df62f0b01d8ca5b04bd0ed2b5ee45444265d Flexible indexes: add Index base class and xindexes properties (#5102) * add IndexAdapter class + move PandasIndexAdapter * wip: xarray_obj.indexes -> IndexAdapter objects * fix more broken tests * fix merge glitch * fix group bins tests * add xindexes property Use it internally instead of indexes * rename IndexAdapter -> Index * rename _to_index_adpater (typo) -> _to_xindex * add Index.to_pandas_index() method Also improve xarray_obj.indexes property implementation * rename PandasIndexAdpater -> PandasIndex * update index type in tests * ensure .indexes only returns pd.Index objects * PandasIndex: normalize other index in cmp funcs * fix merge lint errors * fix PandasIndex union/intersection * [skip-ci] add TODO comment about index sizes * address more PR comments * [skip-ci] update what's new * fix coord_names normalization * move what's new entry to unreleased section 2021-05-11T08:21:25Z 2021-05-11T08:21:25Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
d9ba56c22f22ae48ecc53629c2d49f1ae02fcbcb Flexible indexes refactoring notes (#4979) * add flexible indexes refactoring notes * include some of the PR comments in the notes * update / integrate items from the PR discussion * fill index creation, access, propagation sections * fill index use / encode / repr sections * fill remaining sections + tweaks * Update FLEXIBLE_INDEXES_NOTES.md Co-authored-by: Ryan Abernathey <ryan.abernathey@gmail.com> * Update FLEXIBLE_INDEXES_NOTES.md Co-authored-by: Ryan Abernathey <ryan.abernathey@gmail.com> * Update FLEXIBLE_INDEXES_NOTES.md Co-authored-by: Ryan Abernathey <ryan.abernathey@gmail.com> * Update FLEXIBLE_INDEXES_NOTES.md Co-authored-by: Ryan Abernathey <ryan.abernathey@gmail.com> * address review comments * address more review comments * [skip-ci] move notes to design_notes subdirectory Co-authored-by: Ryan Abernathey <ryan.abernathey@gmail.com> 2021-03-17T16:47:29Z 2021-03-17T16:47:29Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
cb90d5542bd6868d5548ae8efb5815c249c2c329 Fix html repr in untrusted notebooks (plain text fallback) (#4053) * add html pre element with text repr as fallback The PRE element is not displayed when CSS is injected. When CSS is not injected (untrusted notebook), the PRE element is shown but not the DIV container used for the HTML repr. * remove title elements in svg icons Prevent showing those when fallback to plain text repr. A title tag is already present in the HTML label elements. * add basic test * update what's new 2020-05-20T17:06:39Z 2020-05-20T17:06:39Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
63cc85759ac25605c8398d904d055df5dc538b94 add icomoon license (#3448) 2019-10-25T15:40:46Z 2019-10-25T15:40:45Z Benoit Bovy 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db Deepak Cherian 0c7e9e762dbfd6554e60c953bf27493047d95109 xarray 13221727 benbovy 4160723 dcherian 2448579
1d0a2bc4970d9e7337fe307f4519bd936f7d7d89 Detailed report for testing.assert_equal and testing.assert_identical (#1507) * more detailed AssertionError message for assert_identical * print differing dimensions/data/variables/attributes * minor tweaks * add what's new entry * add tests for diff_array_repr and diff_dataset_repr * pep8 * add differing dimensions in diff_array_repr * fix tests (explicit numpy dtypes) * fix tests (dtype shown / not shown in array repr) * minor tweaks 2019-01-18T09:16:30Z 2019-01-18T09:16:30Z Benoit Bovy 5d060630fae3d5a365a239dae12fe85ceed98a8d GitHub cd792325681cbad9f663f2879d8b69f1edbb678f xarray 13221727 benbovy 4160723 web-flow 19864447
846e28f8862b150352512f8e3d05bcb9db57a1a3 DOC: move xarray related projects to top-level TOC section (#2357) * move xarray third-party projects to its own top-level TOC section * add hvplot 2018-08-10T20:13:08Z 2018-08-10T20:13:08Z Benoit Bovy 5d060630fae3d5a365a239dae12fe85ceed98a8d Keisuke Fujii caabe6633d9bef7f2f52807cc5a1f477f3a077d4 xarray 13221727 benbovy 4160723 fujiisoup 6815844
4ee244078ea90084624c1b6d006f50285f8f2d21 DOC: add main sections to toc (#1946) * add main sections to toc * move whats new to "help and references" section 2018-02-27T19:04:24Z 2018-02-27T19:04:23Z Benoit Bovy 5d060630fae3d5a365a239dae12fe85ceed98a8d Stephan Hoyer f10b21bed2846b879806f87039b77245b18e7671 xarray 13221727 benbovy 4160723 shoyer 1217238
1a012080e0910f3295d0fc26806ae18885f56751 Fix unexpected behavior of .set_index() since pandas 0.21.0 (#1723) * fix set_index behavior using pandas 0.21.0 * review comments 2017-11-17T00:54:50Z 2017-11-17T00:54:50Z Benoit Bovy 5d060630fae3d5a365a239dae12fe85ceed98a8d Joe Hamman 5f199557d0f8f69fbea5e027a407146e2669a812 xarray 13221727 benbovy 4160723  
b8771934a2ef24fd3ce5a93fc2accb3f6fa12e4e xarray.core.variable.as_variable part of the public API (#1422) * as_variable now part of the public API * fully remove copy kwarg of as_variable * as_variable docstring changes * move as_variable to advanced API section * fix typo * add more tests for as_variable Also allow passing to `as_variable` objects that have a `data` attribute but no `values` attribute. * fix py27 test 2017-06-02T17:55:11Z 2017-06-02T17:55:11Z Benoit Bovy 5d060630fae3d5a365a239dae12fe85ceed98a8d Stephan Hoyer f10b21bed2846b879806f87039b77245b18e7671 xarray 13221727 benbovy 4160723 shoyer 1217238

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [commits] (
   [sha] TEXT PRIMARY KEY,
   [message] TEXT,
   [author_date] TEXT,
   [committer_date] TEXT,
   [raw_author] TEXT REFERENCES [raw_authors]([id]),
   [raw_committer] TEXT REFERENCES [raw_authors]([id]),
   [repo] INTEGER REFERENCES [repos]([id]),
   [author] INTEGER REFERENCES [users]([id]),
   [committer] INTEGER REFERENCES [users]([id])
);
CREATE INDEX [idx_commits_committer]
    ON [commits] ([committer]);
CREATE INDEX [idx_commits_author]
    ON [commits] ([author]);
CREATE INDEX [idx_commits_repo]
    ON [commits] ([repo]);
CREATE INDEX [idx_commits_raw_committer]
    ON [commits] ([raw_committer]);
CREATE INDEX [idx_commits_raw_author]
    ON [commits] ([raw_author]);
Powered by Datasette · Queries took 19.018ms · About: xarray-datasette