Skip to content

Add support for Excel file upload in data-analysis-agent #300

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Himel-Tasrif
Copy link

Summary

This pull request adds support for uploading .xlsx Excel files in addition to .csv in the data-analysis-agent application.

Changes Made

  • Modified the st.file_uploader() line to accept both CSV and Excel files.
  • Added logic to determine file type and use either pd.read_csv() or pd.read_excel().
  • Added openpyxl to requirements.txt to support Excel parsing.

Why this is needed

Many data analysts work with Excel files as well as CSV. This enhancement makes the app more accessible and flexible for a broader audience.

Tested

  • Verified that both .csv and .xlsx files load properly.
  • Tested functionality locally with Streamlit.

Let me know if any adjustments or refinements are needed.

Copy link
Author

@Himel-Tasrif Himel-Tasrif left a comment

Choose a reason for hiding this comment

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

@jayrodge I’d love your review on this small improvement to allow Excel file uploads for data analysts. Happy to make adjustments if needed!

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.

1 participant