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

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 ProductionAggregage
 
Machine Learning - Startup weekend UCSB 2018
Machine Learning - Startup weekend UCSB 2018Machine Learning - Startup weekend UCSB 2018
Machine Learning - Startup weekend UCSB 2018Raul Eulogio
 
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...Authoritas
 
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...Gray Dot Co
 
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 SEOTory Gray
 
Open data in Egyptian Elections
Open data in Egyptian ElectionsOpen data in Egyptian Elections
Open data in Egyptian ElectionsHaitham Nabil
 
Data science: use cases and tools
Data science: use cases and toolsData science: use cases and tools
Data science: use cases and toolsAlexey Grigorev
 
Analyze this
Analyze thisAnalyze this
Analyze thisAjay Ohri
 
Endouble Kennissessie analytics 2.0
Endouble Kennissessie analytics 2.0Endouble Kennissessie analytics 2.0
Endouble Kennissessie analytics 2.0Endouble
 
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 2018Margaret Roth
 
Pivotal Tracker - Research Findings
Pivotal Tracker - Research FindingsPivotal Tracker - Research Findings
Pivotal Tracker - Research FindingsPaulina Galindo
 
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 developmentPaulGrenyer1
 
Digital landscape
Digital landscapeDigital landscape
Digital landscapeMike Jessop
 
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 MapsDan Ford
 
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 VWOVWO
 
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)Rosenfeld Media
 

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

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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 2024The Digital Insurer
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
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 WorkerThousandEyes
 
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 CVKhem
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
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 2024The Digital Insurer
 

Último (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 

Data Literacy Training - case of CA Election 70