Skip to content

Commit

Permalink
fix llm single column (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike0sv authored Aug 12, 2024
1 parent a921a98 commit 6d68435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evidently/features/generated_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def as_column(self, subcolumn: Optional[str] = None) -> "ColumnName":
f"Please specify subcolumn for {self.__class__.__name__} feature, possible values: "
+ ", ".join(self._extract_subcolumn_name(c.name) for c in columns)
)
if len(columns) == 1 and subcolumn is not None:
if len(columns) == 1 and subcolumn is not None and self._create_column_name(subcolumn) != columns[0].name:
raise ValueError(f"{self.__class__.__name__} feature do not have subcolumns")
try:
fullname = self._create_column_name(subcolumn)
Expand Down

0 comments on commit 6d68435

Please sign in to comment.