Skip to content

Commit 2489c0d

Browse files
committed
copilot nitpick
1 parent 21cd4fe commit 2489c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/adapters/transforms/to_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def forward(self, data, **kwargs) -> dict[str, np.ndarray]:
2323
data = dict(data)
2424

2525
for key, value in data.items():
26-
if isinstance(data[key], pd.Series):
26+
if isinstance(value, pd.Series):
2727
if value.dtype == "object":
2828
value = value.astype("category")
2929

0 commit comments

Comments
 (0)