Comments (5)
+1 for this issue.
The wrong encoding can pose issues when someone will be using the raw data and filter them since some of the special characters in names of some cities/villages are misinterpreted.
In case of need, I can create a Python script which would just perform a simple search and replace automatically to the CSV file. But this would need to be started manually by the user which is not the best-case scenario.
@matejmisik if you (or your team), because of whatever reason, are unable to fix the data before uploading them here, on GitHub, please, let me know and I'll create a simple Python script to fix the data.
from covid19-data.
Hello,
it seems that encoding is still malformed and not easily readable.
@neisor have you find a way to read this data automaticaly and reliably?
from covid19-data.
(English text follows)
Zdravím,
dovolil som si spraviť veľmi jednoduchý python skrip, ktorý daný súbor opravý. Snáď niekomu pomôže.
Hello,
I made a very simple python script, which can repair the broken file. I hope that it can help someone.
from covid19-data.
My solution is to convert OpenData_Slovakia_CovidAutomat.xlsx to csv through cloudconvert service. It's free and works perfectly.
# coding=UTF-8
import cloudconvert
api_key = 'XXXXXXX'
sandbox = False
cloudconvert.configure(api_key = api_key,sandbox = sandbox)
result = cloudconvert.Job.create(payload={
"tasks": {
'import-covid-data': {
'operation': 'import/url',
'url': 'https://github.com/Institut-Zdravotnych-Analyz/covid19-data/raw/main/OpenData_Slovakia_CovidAutomat.xlsx',
'filename': 'OpenData_Slovakia_CovidAutomat.xlsx'
},
'convert-covid-data': {
'operation': 'convert',
'input': 'import-covid-data',
'output_format': 'csv',
'some_other_option': 'value'
},
'export-covid-data': {
'operation': 'export/url',
'input': 'convert-covid-data',
'inline': False,
'archive_multiple_files': False
}
}
})
exported_url_task_id = result['tasks'][2]['id']
res = cloudconvert.Task.wait(id=exported_url_task_id) # Wait for job completion
file = res.get("result").get("files")[0]
res = cloudconvert.download(filename=file['filename'], url=file['url'])
Result is downloaded file: OpenData_Slovakia_CovidAutomat.csv without any encoding error.
from covid19-data.
Btw, I also created Java wrapper around automat.gov.sk.
from covid19-data.
Related Issues (20)
- počty hospitalizovaných v nemocniciach - nevakcínovaní / vakcínovaní (plne / čiastočne / s posilovacou dávkou); prekonaní/neprekonaní HOT 1
- Bolo by možné pridať informáciu o vakcinácii PCR pozitívnych? HOT 1
- dataset o vakcináciách neobsahuje rok HOT 3
- Add info about vaccination to deaths HOT 1
- Error in uploading/processing death data? HOT 1
- Chýbajúce dáta na čakáreň pre tretiu dávku HOT 2
- vaccinations not updated (reoccuring issue) HOT 1
- Differences in vaccination figures HOT 10
- Reportovanie neplatne zaočkovaných po 1.2.2022 HOT 10
- chybajuce data - OpenData_Slovakia_Covid_PCRTests_AgeGroup_District.csv HOT 1
- celkovo : definicia HOT 1
- PCR_Tests HOT 1
- AG_Tests, Ambulance, DailyStats, Deaths sa prestali aktualizovat HOT 1
- Aktualizacie AG_Tests, DailyStats, Deaths...
- Issue with the weeks, 2022 HOT 1
- Zduplikovane data
- vaccinations and fourth dose data HOT 1
- AG test postive
- vaccination data not updated since Friday 19th August HOT 2
- Vaccination data not updated (after NCZI migration and consolidation) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from covid19-data.