Giter Site home page Giter Site logo

swymassignment-prathambhat's Introduction

Swym Build Challenge

Hello I am Pratham Bhat from PES University and this is my submission for the Swym Build Challenge. I have picked the Railway Timetable Assignment.

Demo Video

https://youtu.be/sNSCLEBWHoU

use this link if the above link doesn't work
https://youtu.be/PBvzhiaUin4

Problem Statement

Our CSV puts midnight (00:00:00) as arrival time at all origin stations and also departure time from destination stations. How will you handle this ? a. Can you find the list of all trains that arrive at a station at midnight ? 2. What are the maximum, minimum and average halts for trains ? Is it enough to just subtract the departure time from arrival time to get the halt time ? What about trains that arrive just before midnight and leave some time after midnight ? 3. Given a pair of start and end stations for my journey, how many trains can I take for example from Jalandhar to Amritsar ? The start and end stations may not correspond to the start and end stations on a train route. a. For simplicity do not consider break journeys where you change trains.

Technologies used

  • Python 3.10
  • Streamlit
  • Mysql
  • Pandas

How to run

  • Clone the repo
  • Create a virtual environment
  • Install the requirements
pip install -r requirements.txt
  • Install mysql and create a database
  • Run the sql script in the database after modifying the paths
  • Modify the code to add your database credentials
  • Run the following commands
streamlit run app.py
  • Open the link in your browser

Database Schema

img.png

Demo Screenshots

img_1.png img_2.png img_3.png img_4.png img_5.png

swymassignment-prathambhat's People

Contributors

prathambhattech avatar

Watchers

 avatar

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.