Giter VIP home page Giter VIP logo

branding-process's Introduction

Branding-process

This process is for categorising data (brands) based on an existing list of brands and their search strings.

query_strings.py For each delta file in an S3 bucket, the python script will download the file and call the Sql function to import the data and start the branding process.

wloaddelta.sql Creates the table, imports and creates necessary indexes. Calls the branding process - then exports the results.

brand_match_exper.sql This branding process takes a large list of brands and searches the delta table for these brands. It searches in multiple columns, can return cases of multiple matches - and can accept additional sql input.

Input brands

brandsearch stringadditional sql
TESCO\mTESCO\M% 
RAPHAELS BANKRAPHAELS BANKAND SIC8_DESCRIPTION LIKE '%BANK%' AND NOT SIC8_DESCRIPTION LIKE '%ATM%'
EET-MOBILE 
ABBEYFIELDABBEYFIELD %  
BARCLAYS BANKBARCLAYS PLC%AND SIC8_DESCRIPTION LIKE '%BANK%' AND NOT SIC8_DESCRIPTION LIKE '%ATM%'
WHSMITHW_?H_?SMITH%

Results example

nametrade_namefranchise_namesic8_descriptionbrandnamenew_brandmultiple_brandsmatches
EXXONMOBIL POWER AND GASE SERVICES INC.  GAS AND OTHER SERVICES COMBINEDEXXON MOBIL1;EXXON MOBIL1
GODDARD DAIRY QUEEN  ICE CREAM STANDS OR DAIRY BARSDAIRY QUEEN1;DAIRY QUEEN1
DAIRY QUEEN DAIRY QUEENICE CREAM STANDS OR DAIRY BARSDAIRY QUEEN1;DAIRY QUEEN2
COURTYARD BY MARRIOTT CARROLLTONCOURTYARD CARROLLTONCOURTYARD BY MARRIOTTHOTELSCOURTYARD BY MARRIOTT1;COURTYARD BY MARRIOTT;MARRIOTT2
COURTYARD BY MARRIOTT DELRAY BEACH COURTYARD BY MARRIOTTHOTELS AND MOTELSCOURTYARD BY MARRIOTT1;COURTYARD BY MARRIOTT;MARRIOTT2

branding-process's People

Contributors

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