Giter Site home page Giter Site logo

muskanmahajan37 / gender-pay-gap-gov-uk-importer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eddiejaoude/gender-pay-gap-gov-uk-importer

0.0 0.0 0.0 1.06 MB

Import Gov UK csv data to ElasticSearch for #GPGHack

License: MIT License

JavaScript 100.00%

gender-pay-gap-gov-uk-importer's Introduction

Gender Pay Gap Data Gov UK

Load the Gender Pay Gap data from https://gender-pay-gap.service.gov.uk CSV into ElasticSearch, then use Kibana to view and play with data or create your own search queries and aggregations.

For example ElasticSearch stats aggregation https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-stats-aggregation.html and graphs in Kibana https://www.elastic.co/products/kibana

Quickstart

  • Install node
  • Install elasticsearch (open source version)
  • [OPTIONAL] Download kibana (open source version)
  • Clone this repo git clone [email protected]:eddiejaoude/gender-pay-gap-gov-uk-importer.git
  • Install dependencies npm install
  • Import CSV data to ElasticSearch node index.js
  • [OPTIONAL] Run kibana (optional)

ElasticSearch will be running on localhost:9200 and if using Kibana IT will be running on localhost:5601

Example listing from ElasticSeach

{
    "took": 0,
    "timed_out": false,
    "_shards": {
        "total": 5,
        "successful": 5,
        "skipped": 0,
        "failed": 0
    },
    "hits": {
        "total": 10517,
        "max_score": 1,
        "hits": [
            {
                "_index": "genderpaygap",
                "_type": "2017-2018",
                "_id": "06e59cd5-75e2-11e8-97af-897373a0aed1",
                "_score": 1,
                "_source": {
                "employerName": "1879 EVENTS MANAGEMENT LIMITED",
                "address": "The Sunderland Stadium Of Light,,\r\nSunderland,\r\nTyne And Wear,\r\nSR5 1SU",
                "companyNumber": 7743495,
                "sicCodes": "56210,\r\n70229",
                "diffMeanHourlyPercent": 13.4,
                "diffMedianHourlyPercent": 8.1,
                "diffMeanBonusPercent": 41.4,
                "diffMedianBonusPercent": 43.7,
                "maleBonusPercent": 8.7,
                "femaleBonusPercent": 3.2,
                "maleLowerQuartile": 29.1,
                "femaleLowerQuartile": 70.9,
                "maleLowerMiddleQuartile": 49.4,
                "femaleLowerMiddleQuartile": 50.6,
                "maleUpperMiddleQuartile": 22.8,
                "femaleUpperMiddleQuartile": 77.2,
                "maleTopQuartile": 58.2,
                "femaleTopQuartile": 41.8,
                "companyLinkToGPGInfo": "https://www.safc.com/news/club-news/2018/march/gender-pay-gap-reporting",
                "responsiblePerson": "Jo Graham (Deputy HR Manager)",
                "employerSize": "250 to 499",
                "currentName": "1879 EVENTS MANAGEMENT LIMITED",
                "submittedAfterTheDeadline": false
            },

            // ...

        ]
    }
}

Example graphs from Kibana

Example

gender-pay-gap-gov-uk-importer's People

Contributors

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