Skip to content

Commit

Permalink
hotfix: dataset.df
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrckd committed Dec 20, 2024
1 parent ee96a21 commit bab2467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def to_table_init(self, db: Session) -> dict:
dataset = models.Dataset(**obj["dataset"])
obj["dataset"] = dataset
if dataset.has_output:
df = pd.read_json(StringIO(dataset))
df = pd.read_json(StringIO(dataset.df))
obj["num_try"] = dataset.size
obj["num_success"] = df["output"].count()

Expand Down

0 comments on commit bab2467

Please sign in to comment.