Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
phelps-sg committed Jan 23, 2024
1 parent 23046f6 commit 8adc95c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llm_cooperation/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def save_table(df: pd.DataFrame, name: str, caption: str) -> pd.DataFrame:
return df


def _repeated_to_long_row(row: pd.DataFrame) -> pd.DataFrame:
df = pd.DataFrame(row).transpose()
def _repeated_to_long_row(df: pd.DataFrame) -> pd.DataFrame:
choices = df.Choices.values[0]
n = len(choices)
user_choices = [c.user.as_int for c in choices]
Expand Down

0 comments on commit 8adc95c

Please sign in to comment.