Git Product home page Git Product logo

morelocationdata's Introduction

MoreLocationData

Project Repo which expands the city database to include Timezones and American Zip Codes as added Dimensions

Timezones and Zip codes can be loaded into the SQL Database created from the previous post.

Code that was used to troubleshoot or test out process is left in to show how process of iterating through a project.

SQL File

Lines 1-25: Creating staging table for storing the results of the time zone API pull.

Lines 27-36: Query used to populate the work queue in Python

Lines 45-58: Cleaning up data and modifying Timezone table

Lines 67-74: Adding timezone foreign key to world cities

Lines 77-155: Cleaning up Timezone table of duplicates

Lines 158-199: Query to identify and correctly map Timezones from Stage table and TimeZone Table

Lines 205-253: Updating WorldCities table with Timezones using temp tables

Lines 260-265: Cleaning Up ZipCode Table

Lines 268-274: Multiple Timezones in a state check

Lines 278-334: Zipcode-Timezone Mapping query and update

Lines 339-359: Adding Constraints and dropping unneeded columns and objects

Python File

Lines 8-21: Connecting to Database and loading results into dataframe

Lines 29-54: Iterating over dataframe. Query from API, and loading results into SQL Staging table.

morelocationdata's People

Contributors

c00ldudenoonan avatar

Stargazers

JulianK 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.