Comments (8)
- This is the problem of your actual raw_data file, which should not have
Parameter
as column name, but obviouslyParameter_ID
, right? I mean, we read the data in as a dictionary, then we add the dict with keywords, so if there is now key=Parameter_ID, what can we add?
from gata.
- You must modify the field content then.
for row in self.etc_dir.read_csv(
'languages.csv',
dicts=True,
):
row["Source"] = [row["Source"]]
args.writer.objects['LanguageTable'].append(row)
from gata.
- what do you mean by "tried"?
from gata.
- Ok, I've already changed it in gata_raw.csv as it should have been. All is working fine now. My question is (and maybe it has the same answer as point 3): why I cannot modify it on the script instead of changing it on the data.csv?
from gata.
- Great. It now works!
- I delete it from StructureDataset_metadata.json but it appears again when I run CLDF conversion.
from gata.
Yes, since it is a required field that should be addressed. In fact, you should add codes to your datasets (I propose to make a new issue for that!). Similar to "Parameter_ID" in the ValueTable, you cannot just ignore this part. It is part of the structure, you can see when checking other cldf datasets here.
from gata.
You can of course modify and tweak things in your script, but what I showed you is the easiest way. If you want to modify things on the fly, you should create a dictionary with the keys you desire, and then pass this to the respective table, appending it there. But it'll be more code with the settings you have here, why go for more code?
from gata.
Ok great :) It is all clear to me now. I'm closing this issue and opening a new one regarding the codes. Thanks!
from gata.
Related Issues (19)
- Change name to lower case
- Transfer repository to `cldf-datasets` HOT 1
- move `languages.tsv` to `etc` folder and change ending to `csv`
- move `parameters.tsv` to `etc` and change `.tsv` to `.csv`
- Handling References: parse sources HOT 3
- Can you give me admin rights? HOT 1
- Run CLDF conversion and check HOT 8
- Inconsistent column names in parameters HOT 1
- Codes HOT 4
- Push-Access HOT 1
- Relative paths in plot file HOT 1
- Create release for submission HOT 1
- Link from README to CLDF metadata is wrong HOT 1
- Year column is sometimes not a year HOT 2
- ValueTable includes R-isms "NA" as a value. HOT 3
- Wrong grammar coded for karo1304 HOT 1
- Issues with Table HOT 1
- List doculects in LanguageTable rather than Glottolog languages?
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 gata.