Skip to content

Commit 5b7b38a

Browse files
mypy
1 parent 48dcc85 commit 5b7b38a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc/data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ def _dataframe_agnostic_coords(
278278
if len(dims) > 1:
279279
column_dim = dims[1]
280280
if column_dim is not None:
281-
coords[column_dim] = value.select(nw.exclude(index_dim)).columns
281+
select_expr = nw.exclude(index_dim) if index_dim is not None else nw.all()
282+
coords[column_dim] = value.select(select_expr).columns
282283

283284
return coords, _handle_none_dims(dims, ndim_in)
284285

0 commit comments

Comments
 (0)