Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added --export-to CSV option to query magics #582

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

michaelnchin
Copy link
Member

@michaelnchin michaelnchin commented Apr 3, 2024

Issue #, if available: #581

Description of changes:

  • Added a new --export-to option to the query magic commands. This option allows users specify the name of a CSV file (with optional local path) to create and export the query results to.

Example usage:

%%oc --export-to oc_results
...

This will create (or overwrite) an oc_results.csv file in the same directory as the Jupyter notebook.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@michaelnchin michaelnchin merged commit aa1212a into main Apr 3, 2024
3 checks passed
@michaelnchin michaelnchin deleted the export-results branch April 3, 2024 21:39
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.

None yet

1 participant