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 21cd4fe commit 2489c0dCopy full SHA for 2489c0d
bayesflow/adapters/transforms/to_dict.py
@@ -23,7 +23,7 @@ def forward(self, data, **kwargs) -> dict[str, np.ndarray]:
23
data = dict(data)
24
25
for key, value in data.items():
26
- if isinstance(data[key], pd.Series):
+ if isinstance(value, pd.Series):
27
if value.dtype == "object":
28
value = value.astype("category")
29
0 commit comments