Commit 2b947e9
authored
Fix index duplication (#10671)
* Add test that currently fails and should pass
* Add test that fails on multi-index DataArrays
* Add fix: deduplicate columns
* Update xarray/core/dataset.py
* Simpler and cleaner fix
* Add a test to confirm that deduplication does not affect non-multiindex coords
* Update xarray/core/dataset.py1 parent 567cc5b commit 2b947e9
3 files changed
+51
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7176 | 7176 | | |
7177 | 7177 | | |
7178 | 7178 | | |
7179 | | - | |
| 7179 | + | |
| 7180 | + | |
| 7181 | + | |
| 7182 | + | |
7180 | 7183 | | |
7181 | 7184 | | |
7182 | 7185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3524 | 3524 | | |
3525 | 3525 | | |
3526 | 3526 | | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
3527 | 3539 | | |
3528 | 3540 | | |
3529 | 3541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5120 | 5120 | | |
5121 | 5121 | | |
5122 | 5122 | | |
5123 | | - | |
5124 | 5123 | | |
5125 | 5124 | | |
5126 | 5125 | | |
| |||
5154 | 5153 | | |
5155 | 5154 | | |
5156 | 5155 | | |
| 5156 | + | |
| 5157 | + | |
| 5158 | + | |
| 5159 | + | |
| 5160 | + | |
| 5161 | + | |
| 5162 | + | |
| 5163 | + | |
| 5164 | + | |
| 5165 | + | |
| 5166 | + | |
| 5167 | + | |
| 5168 | + | |
| 5169 | + | |
| 5170 | + | |
| 5171 | + | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
| 5175 | + | |
| 5176 | + | |
| 5177 | + | |
| 5178 | + | |
| 5179 | + | |
| 5180 | + | |
| 5181 | + | |
| 5182 | + | |
| 5183 | + | |
| 5184 | + | |
| 5185 | + | |
| 5186 | + | |
| 5187 | + | |
| 5188 | + | |
| 5189 | + | |
| 5190 | + | |
5157 | 5191 | | |
5158 | 5192 | | |
5159 | 5193 | | |
| |||
0 commit comments