home / github / commits

Menu
  • Search all tables
  • GraphQL API

commits: e678a1d7884a3c24dba22d41b2eef5d7fe5258e7

This data as json

sha message author_date committer_date raw_author raw_committer repo author committer
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 7c39fdcf60cc53af273aaf57e5babfd7c2fcd3db cd792325681cbad9f663f2879d8b69f1edbb678f 13221727 4160723 19864447
Powered by Datasette · Queries took 5.425ms · About: xarray-datasette