html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/4375#issuecomment-696845767,https://api.github.com/repos/pydata/xarray/issues/4375,696845767,MDEyOklzc3VlQ29tbWVudDY5Njg0NTc2Nw==,20629530,2020-09-22T16:50:26Z,2020-09-22T16:50:26Z,CONTRIBUTOR,"I did encounter this when writing up `polyfit`! I decided to discard that for the time being, but I believe changing `get_clean_interp_index` would the best way to fix this. One would also need to modify `polyfit` sligthly, though. Here: https://github.com/pydata/xarray/blob/9c85dd5f792805bea319f01f08ee51b83bde0f3b/xarray/core/dataset.py#L6064-L6075 When the non-fitted dimensions are stacked together, `dim` should be renamed to the real dimension of the variable. I will not have time to make a PR, but it should be quite simple, if anyone has time!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,685739084