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

Unknown LIDs (2915, 3000) referenced in data/*.csv #10

Closed
xflr6 opened this issue Dec 18, 2017 · 1 comment
Closed

Unknown LIDs (2915, 3000) referenced in data/*.csv #10

xflr6 opened this issue Dec 18, 2017 · 1 comment

Comments

@xflr6
Copy link

xflr6 commented Dec 18, 2017

In [1]: import pathlib
    ...: 
    ...: import pandas as pd
    ...: 
    ...: DIR = pathlib.Path('~/projects/cldf/autotyp-data/data').expanduser()
    ...: DATA = sorted(p for p in DIR.glob('*.csv') if p.name != 'Register.csv')
    ...: 
    ...: lf = pd.read_csv(DIR / 'Register.csv', encoding='utf-8', index_col='LID')
    ...: 
    ...: for d in DATA:
    ...:     df = pd.read_csv(d, encoding='utf-8')
    ...:     missing = df.loc[~df['LID'].isin(lf.index), ['LID']]
    ...:     if not missing.empty:
    ...:         print(d.name)
    ...:         print(missing)
Grammatical_markers.csv
       LID
2854  2915
4685  2915
NP_per_language.csv
      LID
479  3000
NP_structure.csv
       LID
922   3000
1029  3000
NP_structure_presence.csv
       LID
1012  3000
1013  3000
@tzakharko
Copy link
Contributor

This is fixed in 1.0.0. Apologies for taking so long, we were busy rebuilding the data export and aggregation pipeline from scratch.

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

2 participants