SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
Hands-on Training

Data – what and how?
A case of CA Election 70

YoungInnovations
OpenNepal
Data → Story
●

Find data

●

Wrangle/Cleanup the data

●

Merge data with others (if any)

●

Filter and sort the data

●

Analyze data

●

Visualize data (story)
CA Election 2070
●

What is data?
–

The candidates (age, gender, party)

–

The constituencies (vdc, ward, party)

–

The results (with votes, winner)

–

…..
Where to find it?
●

http://election.gov.np

●

The following FPTP results data in XML
Not lucky every time finding data
●

Scrapping (requires programming knowledge)
–

Using google scraper

●

PDF conversion

●

PDF manual transcribe
Chrome Scraper Extension
●

Search for “Chrome extension Scraper” from
Chrome browser to install
Scraper in Action
PDF to Text
●

Online tools available

●

Linux has different set of utilities

●

PDF is still a big nuisance (though something is
better than nothing)
PDF to Text
http://www.election.gov.np/election/uploads/fil
es/ecn_report/constwisecandidatecount.pdf
PDF to Text
●

Linux utility - pdftotext
CSV
●
●

●

CSV - Comma Separated Value
Opens in MS Excel, Open Office, Google
Spreadsheet
Easy to work with
CA XML Data to CSV
XML to CSV?
●

Online services are available

●

Might need help from technologist

●

In linux (there might be several ways, e.g)
xml2 < FPTP-CA70.xml | 2csv FPTP
DISTNAME CONST CANDIDATE AGE SEX
PARTYNAME SYMBOLNAME TOTALVOTE
STATUS > FPTP-CA70.csv
OpenNepal
●

Repository of datasets
–

●
●

●

data in csv, xml or json format

Request for dataset
Request for help in conversion from one format
to another, scrapping data, ...
OpenNepal Community (GoogleGroup) is very
vibrant
CA Results CSV data
●

Converted from XML

http://dev.yipl.com.np/data-training/data/FPTP-CA70.csv
Processing/Cleaning CSV – Basics
●

Add header

●

Sorting (by different fields)

●

Filter

●

Simple formulas
Add headers
●

Insert row at the top

●

Add header for each column
Sorting
●

Sorting by Age – Ascending, Descending

●

Find out youngest winning candidate age
Filtering
●

Filter the list of winning female candidates
Some exercise
●

●

●

●

●

Are there people who didn't receive a single vote?
What is the highest and lowest number of votes of
candidate who didn't win?
Find the percentage of female and male
candidates, percentage of winning female
candidates?
Try the above exercise in one district of your
interest?
Think of other things you can do with this basic
skills
More questions
●

●

●

How many parties have candidates in all 240
constituencies?
How many male and female candidates are
there in Nepali Congress? Ratio of male-female
in far-west districts?
Which party has the highest number of female
candidates?
Data Processing - Pivottable
PivotTable - more
●

Breakdown of
independent
candidates
Lets again see numbers
●

Sorted by total
number of
candidates
Visualization
●

Bar graph of male-female candidates of top few
districts
What else visualizations are
possible?
●

https://github.com/mbostock/d3/wiki/Gallery
What else visualizations are
possible?
●

https://github.com/mbostock/d3/wiki/Gallery
Geocoding
●

Geo-coding
–

–

●

the conversion of a human-readable location name
into a numeric (or other machine-processable)
location such as a longitude and latitude
Kathmandu => [geocoding] => {latitude: 27.70169,
longitude: 85.3206}

Online tools available for geocoding
–

Google fusion table

–

cartodb
Lat-long in maps.google.com
●

Put the lat long (27.70169 85.3206) in google
map search box
Services available for geocoding
http://open.mapquestapi.com/nominatim/v1/sea
rch?format=xml&q=Kathmandu,Nepal
Problems with this CSV
●

Unicode in districts name

●

Can't geocode (currently only english)
Adding english district name

http://dev.yipl.com.np/data-training/data/FPTP-CA70-eng.csv
Google Fusion Table
●

tables.googlelabs.com (need @gmail account)
Imported data
Geocoding
Using filter in the map
Use of heatmap based on votes
Thank you

Mais conteúdo relacionado

Semelhante a Data Literacy Training - case of CA Election 70

Digital landscape
Digital landscapeDigital landscape
Digital landscape
Mike Jessop
 

Semelhante a Data Literacy Training - case of CA Election 70 (20)

A Tale of Two Case Studies: Using LLMs in Production
A Tale of Two Case Studies: Using LLMs in ProductionA Tale of Two Case Studies: Using LLMs in Production
A Tale of Two Case Studies: Using LLMs in Production
 
Machine Learning - Startup weekend UCSB 2018
Machine Learning - Startup weekend UCSB 2018Machine Learning - Startup weekend UCSB 2018
Machine Learning - Startup weekend UCSB 2018
 
Explore Outdoor
Explore OutdoorExplore Outdoor
Explore Outdoor
 
Creating Meaningful in-house and Agency SEO Dashboards for the Enterprise - T...
Creating Meaningful in-house and Agency SEO Dashboards for the Enterprise - T...Creating Meaningful in-house and Agency SEO Dashboards for the Enterprise - T...
Creating Meaningful in-house and Agency SEO Dashboards for the Enterprise - T...
 
Agile SEO: Building a Continuous Improvement Machine for SEO - Gray Dot Prese...
Agile SEO: Building a Continuous Improvement Machine for SEO - Gray Dot Prese...Agile SEO: Building a Continuous Improvement Machine for SEO - Gray Dot Prese...
Agile SEO: Building a Continuous Improvement Machine for SEO - Gray Dot Prese...
 
Agile SEO: Building a Continuous Improvement Machine for SEO
Agile SEO: Building a Continuous Improvement Machine for SEOAgile SEO: Building a Continuous Improvement Machine for SEO
Agile SEO: Building a Continuous Improvement Machine for SEO
 
Open data in Egyptian Elections
Open data in Egyptian ElectionsOpen data in Egyptian Elections
Open data in Egyptian Elections
 
Analytics and-insight
Analytics and-insightAnalytics and-insight
Analytics and-insight
 
Data science: use cases and tools
Data science: use cases and toolsData science: use cases and tools
Data science: use cases and tools
 
Analyze this
Analyze thisAnalyze this
Analyze this
 
Endouble Kennissessie analytics 2.0
Endouble Kennissessie analytics 2.0Endouble Kennissessie analytics 2.0
Endouble Kennissessie analytics 2.0
 
Research Beyond
Research BeyondResearch Beyond
Research Beyond
 
Creating a Data Driven L&D Team - an xAPI Case Study - DevLearn 2018
Creating a Data Driven L&D Team - an xAPI Case Study - DevLearn 2018Creating a Data Driven L&D Team - an xAPI Case Study - DevLearn 2018
Creating a Data Driven L&D Team - an xAPI Case Study - DevLearn 2018
 
Pivotal Tracker - Research Findings
Pivotal Tracker - Research FindingsPivotal Tracker - Research Findings
Pivotal Tracker - Research Findings
 
Data mining
Data miningData mining
Data mining
 
Find my tea [sync ipswich] a technical journey through new product development
Find my tea [sync ipswich] a technical journey through new product developmentFind my tea [sync ipswich] a technical journey through new product development
Find my tea [sync ipswich] a technical journey through new product development
 
Digital landscape
Digital landscapeDigital landscape
Digital landscape
 
Formula for Creating Custom Advocacy Reports with Maps
Formula for Creating Custom Advocacy Reports with MapsFormula for Creating Custom Advocacy Reports with Maps
Formula for Creating Custom Advocacy Reports with Maps
 
Generating Quality Hypotheses For Higher Uplifts | Masters of Conversion by VWO
Generating Quality Hypotheses For Higher Uplifts | Masters of Conversion by VWOGenerating Quality Hypotheses For Higher Uplifts | Masters of Conversion by VWO
Generating Quality Hypotheses For Higher Uplifts | Masters of Conversion by VWO
 
Global Scale in Research (Nancy Douyon at Enterprise UX 2018)
Global Scale in Research (Nancy Douyon at Enterprise UX 2018)Global Scale in Research (Nancy Douyon at Enterprise UX 2018)
Global Scale in Research (Nancy Douyon at Enterprise UX 2018)
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Data Literacy Training - case of CA Election 70