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

Google sheets ai #338

Merged
merged 10 commits into from
Jul 25, 2023
Merged

Google sheets ai #338

merged 10 commits into from
Jul 25, 2023

Conversation

yassinkortam
Copy link
Contributor

- read_googlesheet.ipynb.
- Can read a google sheet given a shareable link.
- Can select a data table from the spreadsheet given a prompt.
- Fixed the get_google_sheet function by implementing bs4 (more reliable than boilerplate).
- Moved all the google sheets functions into a utils module.
- Created 4 test case google sheets and a jupyter notebook to test the functions.
- Removed code that was only used for prototyping
- Moved new modules into the pandasai package

Bug fixes
- Dataframes were read as strings, added logic to convert numeric columns to numeric
- Column similarity score did not account for multiple perfect matches, added logic to account for this
@gventuri
Copy link
Collaborator

gventuri commented Jul 7, 2023

@yassinkortam does it only work for public sheets?

@gventuri
Copy link
Collaborator

gventuri commented Jul 7, 2023

@yassinkortam could you add bs4 as a optional dependency (check out pyproject.toml, similar to what has been done with langchain and google-generativeai)

@yassinkortam
Copy link
Contributor Author

yassinkortam commented Jul 24, 2023

Yes, it only works with google sheets that have a link that allows for public viewing access. Added BS4 as an optional dependency.

@gventuri gventuri merged commit 7592601 into Sinaptik-AI:main Jul 25, 2023
9 checks passed
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.

Google Sheets + Multiple Dataframes
2 participants