Giter Site home page Giter Site logo

aristotles / sample-records Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 731 KB

A project built using Dash written in Python, Kratsas Records, takes the data inside accidents.parquet and displays it so the user may interact and understand it.

R 0.08% Python 0.73% HTML 0.01% JavaScript 98.95% Julia 0.08% CSS 0.14%

sample-records's Introduction

Kratsas Records

A project built using Dash written in Python, Kratsas Records, takes the data inside accidents.parquet and displays it so the user may interact and understand it.

Setup

To run the program:

  1. Make sure you are at the root of the project.
  2. pip install -r requirements.txt
  3. python or python3 coffee_records_app.py

If any changes are made to the React code "npm run build" must be ran

Code

The project consists of four main files

  1. coffee_records_app.py: The starting file where the Dash application is started and maintained.
  2. coffee_records_functions.py: Several functions that are used inside CRA, some are used more than once, others are in the seperate file for readibility.
  3. coffee_records_test.py: Test for main parquet searching function.
  4. SearchBar.react.js: A React component that the user may interact with to query the DataTable.

UX

-Searchbar: user can enter and search a string of text to see where it appears in the database. This can sometimes take a while to update.
-Mapbox Map: Starts with a zoomed out map of all accidents, when a user clicks on a row, it zooms in to the specific incident, can be hovered over to show data.
-Datatable: Table showing all the data from the stored accidents.parquet to start, and will change based on the users searched term.
-Vehicle Plot: A scatterplot of Model vs Make, with the color being Year, and size being number.

Further improvements

- Increased styling changes, mainly to the title, and the background of the page.
- Added React components, the first of which would be a menu bar, breaking out the application into different webpages: map, plot, table etc.
- Showing the terms that the different weather,road conditions represent.
- The tool used for the latitude/longitude, did not work as well as intended, some locations were not found, leaving to some inaccurate map markers.
- Host the application on GCP/AWS.

Sources

https://medium.com/@whwrd/building-a-beautiful-text-input-component-in-react-f85564cc7e86
https://www.mapbox.com/
https://dash.plotly.com/

sample-records's People

Contributors

aristotles avatar

Watchers

Jake avatar  avatar

Forkers

prudvisoma1

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.