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/4091#issuecomment-633643132,https://api.github.com/repos/pydata/xarray/issues/4091,633643132,MDEyOklzc3VlQ29tbWVudDYzMzY0MzEzMg==,10194086,2020-05-25T16:27:19Z,2020-05-25T16:27:19Z,MEMBER,"Yes that could be a bug:
```python
import xarray as xr
d = xr.Dataset(coords=dict(x=5))
d.set_index({""x"": ""x""})
```
returns:
```
TypeError: len() of unsized object
```
---
For your use case, however, you don't need to set time as an index. There are several ways how you can combine `Datasets` - depending on how your data actually looks like. The [docs on combining](http://xarray.pydata.org/en/stable/combining.html) may be useful. If your files are saved on disk, the docs on [reading multiple datasets](http://xarray.pydata.org/en/stable/io.html#reading-multi-file-datasets) may be useful.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,623872328