Skip to content

Add to_dataframe method to BinaryAPIReponse#56

Merged
lingxi-at-contextual merged 5 commits intomainfrom
api_dataframe
Mar 11, 2025
Merged

Add to_dataframe method to BinaryAPIReponse#56
lingxi-at-contextual merged 5 commits intomainfrom
api_dataframe

Conversation

@sean-smith
Copy link
Copy Markdown

This adds a method to_dataframe that can be used for eval responses like so:

eval_results = client.agents.datasets.evaluate.retrieve(dataset_name=dataset_name, agent_id=agent_id)
df = eval_results.to_dataframe()
df.head()

@sean-smith sean-smith force-pushed the api_dataframe branch 6 times, most recently from 4024864 to 9e8cc56 Compare February 28, 2025 22:40
Copy link
Copy Markdown
Contributor

@lingxi-at-contextual lingxi-at-contextual left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! Left one question about flexibility. Please resolve the conversation (by replying and marking them as resolved) before merging 🚀

Notes:

  1. I am not sure if custom dependency will work because it requires a higher paid tier. We will see haha.
  2. If you have time, please try adding a test to this behavior. This can help ensure that future code generations would not break this function. Thank you!!

Sean Smith added 3 commits March 3, 2025 15:05
Signed-off-by: Sean Smith <sean.smith@contextual.ai>
Signed-off-by: Sean Smith <sean.smith@contextual.ai>
Signed-off-by: Sean Smith <sean.smith@contextual.ai>
Signed-off-by: Sean Smith <sean.smith@contextual.ai>
Copy link
Copy Markdown
Contributor

@lingxi-at-contextual lingxi-at-contextual left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!! LGTM. Thank you for the PR!!

Signed-off-by: Sean Smith <sean.smith@contextual.ai>
@lingxi-at-contextual lingxi-at-contextual merged commit 5fd7c89 into main Mar 11, 2025
3 checks passed
stainless-app bot pushed a commit that referenced this pull request Mar 11, 2025
Signed-off-by: Sean Smith <sean.smith@contextual.ai>
@stainless-app stainless-app bot mentioned this pull request Mar 11, 2025
sean-smith pushed a commit that referenced this pull request Mar 12, 2025
@stainless-app stainless-app bot mentioned this pull request Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants