zazwaz12 / CITS3200---National-Housing-Simulation

National Housing Simulation - mapping data points from the G-NAF and the census data sets.
0 stars 0 forks source link

Data loading #36

Closed SodaVolcano closed 2 months ago

SodaVolcano commented 2 months ago

Title: "Closes issue #22 " About: Function to load PSV files and tests Labels: '' Assignees: ''


What does this implement/fix? Explain your changes.

Adds 2 functions to load a directory of PSV files and output a dictionary of LazyFrames

Checklist:

Reece030130 commented 2 months ago

Census data contains .csv files. which will be filtered when read_all_psv. and xlsx files. Do we need read_all_csv......

SodaVolcano commented 2 months ago

Census data contains .csv files. which will be filtered when read_all_psv. and xlsx files. Do we need read_all_csv......

I've added support for csv and xlsx, function is now called read_spreadsheets. I didn't add error checking because that'll muddy up the code and the return type, I'm assuming the user can use the function properly.

btw if there's a functionality you think should be added to a PR or be made into a new issue, you can request change by re-reviewing the branch or make a new issue.