Skip to content

Commit 8608117

Browse files
Update fslite/fs/ml.py
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
1 parent 681a823 commit 8608117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fslite/fs/ml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def select_features(self, fsdf: FSDataFrame) -> FSDataFrame:
140140
"""
141141

142142
if fsdf is None or fsdf.count_features() == 0 or fsdf.count_instances() == 0:
143-
raise ValueError(
143+
raise InvalidDataError(
144144
"The data frame is empty or does not contain any features."
145145
)
146146

0 commit comments

Comments
 (0)