Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV-tiedon formaatti #1

Open
jampekka opened this issue Mar 28, 2017 · 0 comments
Open

CSV-tiedon formaatti #1

jampekka opened this issue Mar 28, 2017 · 0 comments

Comments

@jampekka
Copy link

jampekka commented Mar 28, 2017

Dokumentaatiossa voisi kertoa tarkemmin tuon CSV:n muodosta, joka ei ole ihan se yleisesti oletettu. Eli erottimena on puolipiste (;), desimaalierottimena pilkku (,) ja tekstin enkoodaus näyttäisi olevan melko eksoottinen cp850.

Pythonilla/pandasilla näyttäisi tulevan luettavaa kamaa, kun sanoo:

import pandas as pd
data = pd.read_csv('hs.csv', sep=';', decimal=',', encoding='cp850')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant