Skip to content

Commit

Permalink
Cast columns to list for compatibility with numpy 1.26+
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Mar 26, 2024
1 parent ea849c5 commit 802a119
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions matminer/featurizers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ def featurize_dataframe(
# Check names to avoid overwriting the current columns
# ConversionFeaturizer have attribute called _overwrite_data which
# determines whether an Error is thrown
if not isinstance(labels, list):
labels = labels.tolist()
overwrite = getattr(self, "_overwrite_data", False)
if not overwrite:
for col in df.columns.values:
Expand Down

0 comments on commit 802a119

Please sign in to comment.