GithubHelp home page GithubHelp logo

mshenfield / chtl-data-pipeline Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 25.29 MB

A pipeline for data from the Capitol Hill Tool Library's MyTurn dashboard.

Jupyter Notebook 5.77% Python 3.14% HTML 91.05% Shell 0.04%

chtl-data-pipeline's People

Contributors

dependabot[bot] avatar mileswwatkins avatar mshenfield avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chtl-data-pipeline's Issues

Some CSVs contain unescaped newlines

Some of the data going into the CSVs have HTML blobs, and their newlines didn't get escaped when writing to the CSV. We'll need to implement newline escaping during export to make the CSVs more useful.


Example from the Maintenance field in inventory.csv:

5,Board Games,Cranium,,,,,,0,Sustainable Living,,4.0,0.1,,7,<p><span>[March 2019 Maren] Item never returned</span></p>,,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/65312/image/1464227285084724835121-E8BE1E27-6404-5381-5CF1-34DB7DE91D00.jpg,"frozenset({'games', 'cramium'})",F 1.5,,,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-07 11:44:47-07:00,2020-05-16T14:39:17.000Z,2020-05-16T07:39:17.000-07:00,True,False,False,False
6,Telescopes,Telescope,,,,,,0,Sustainable Living,,4.0,0.1,,7,<p>[Maren 09/2018] weeded</p>,,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/67477/image/attribute_image6941196198708631832.jpg,frozenset({'telescope'}),,"<p>The sight (on the side) shows everything upside down somehow. Tried fiddling with it, but couldn't figure it out.</p>
<p>Was told that the main telescope is not working either :(</p>
<p>Dylan (dfresh) has checked this item out to see if he can fix it!</p>",,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-19 21:48:50-07:00,2022-01-12T08:13:24.000Z,2022-01-12T00:13:24.000-08:00,True,False,False,False
7,Marine & Fishing,Clam Shovel,,,,,,0,,,5.0,0.1,,7,[Maren October 2018] missing,,,,,N,Y,N,0,30.0,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/68364/image/attribute_image9125856150012536881.jpg,"frozenset({'digging', 'shovel', 'clam'})",Far Back,"<p>keep the ocean to your side, scrape quickly over the show, and don't break the clam shell!</p>",,,,,,3,,,7,,,,0,,,,,30.0,,,,,0,,2015-07-29 22:38:12-07:00,2022-01-12T08:12:09.000Z,2022-01-12T00:12:09.000-08:00,True,False,False,False

Example from the Description field of inventory.csv:

11,Hobbies & Crafts,Linoleum Block Carving Tools,,,,,,0,,,5.0,0.1,,7,<p>Use these to make your own stamps!</p>,,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/68372/image/attribute_image246694180652050202.jpg,"frozenset({'sharppointything', 'stamps', 'art', 'crafts'})",A 4.2,,,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-30 10:23:06-07:00,2021-12-05T18:39:45.000Z,2021-12-09T10:48:08.000-08:00,False,False,False,False
12,Brushes and Rollers,Painting Tools,,,0,,,0,,,5.0,0.1,,7,"<p>1 roller, 3 brushes</p> 
<p><span>[Maren November 2018] consumed</span></p>",,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/68373/image/attribute_image9067645810522770333.jpg,frozenset({''}),A 3.4,<p>Please completely clean brushes before return</p>,,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-30 10:27:18-07:00,2022-01-12T08:12:52.000Z,2022-07-22T09:49:18.000-07:00,True,False,False,False
13,Hobbies & Crafts,Paper Cutter,,,,,,0,,,5.0,0.1,,7,<p>All your paper cutting needs with this handy dandy tool!</p>,,,,,N,Y,N,0,,https://myturn-prod-images-in.s3.amazonaws.com/6/66/item/68375/image/attribute_image566824457081178194.jpg,"frozenset({'cut', 'sharp', 'paper', 'cutting'})",A 3.2,,,,,,,3,,,7,,,,0,,,,,,,,,,0,,2015-07-30 10:29:15-07:00,2021-12-05T18:39:45.000Z,2021-12-09T10:48:08.000-08:00,False,False,False,False

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.