hackforla / peopledepot

A project to setup a datastore for people and projects at HackforLA. The link below takes you to the code documentation
https://hackforla.github.io/peopledepot/
GNU General Public License v2.0
5 stars 24 forks source link

Eliminate external JSON export script #144

Open fyliu opened 1 year ago

fyliu commented 1 year ago

Dependency

Overview

We're using an external Goggle Apps script to export initial data from the spreadsheet in JSON form, but the functionality can be brought in to our own script and eliminate the manual step.

Action Items

Resources/Instructions

anandramakris commented 4 months ago

Have modified the data conversion script so it reads data directly from a csv, but it is not able to gather data sheet by sheet yet.

anandramakris commented 3 months ago

Have created a new pull request after retesting. The documentation has been modified to show that the file can be read without changing the name of the file.

I figured out why Pandas reading from Google Sheets directly did not work. Even if you specify the gid of the sheet, it always reads from the first sheet in each spreadsheet - in the case of "PD: Table and field explanations" it always reads from "what happens re github and reminders." Since the rows in that sheet have different numbers of elements, it caused a null value error.