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 44add8d commit e2c7038Copy full SHA for e2c7038
monai/data/utils.py
@@ -1484,7 +1484,7 @@ def convert_tables_to_dicts(
1484
rows.append(i)
1485
1486
# convert to a list of dictionaries corresponding to every row
1487
- data_ = df.loc[rows] if col_names is None else df.loc[rows, col_names]
+ data_ = df.iloc[rows] if col_names is None else df.iloc[rows][col_names]
1488
if isinstance(col_types, dict):
1489
# fill default values for NaN
1490
defaults = {k: v["default"] for k, v in col_types.items() if v is not None and v.get("default") is not None}
0 commit comments