We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48dcc85 commit 5b7b38aCopy full SHA for 5b7b38a
pymc/data.py
@@ -278,7 +278,8 @@ def _dataframe_agnostic_coords(
278
if len(dims) > 1:
279
column_dim = dims[1]
280
if column_dim is not None:
281
- coords[column_dim] = value.select(nw.exclude(index_dim)).columns
+ select_expr = nw.exclude(index_dim) if index_dim is not None else nw.all()
282
+ coords[column_dim] = value.select(select_expr).columns
283
284
return coords, _handle_none_dims(dims, ndim_in)
285
0 commit comments