paralex 2.2.6__tar.gz → 2.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {paralex-2.2.6 → paralex-2.2.8}/PKG-INFO +1 -1
- {paralex-2.2.6 → paralex-2.2.8}/paralex/__init__.py +1 -1
- {paralex-2.2.6 → paralex-2.2.8}/paralex/gendoc.py +1 -1
- {paralex-2.2.6 → paralex-2.2.8}/paralex/utils.py +8 -1
- {paralex-2.2.6 → paralex-2.2.8}/paralex.egg-info/PKG-INFO +1 -1
- {paralex-2.2.6 → paralex-2.2.8}/README.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/advanced-metadata.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/changelog.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/css/extra.css +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/datasets.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/examples.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/faq.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/graph-paralex.png +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/index.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/known-datasets.csv +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/language_stats.csv +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/long-form.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/mapframe.html +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/metadata.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/owl2html.xsl +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/paralex.png +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/paralex_blk.png +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/paralex_ontology.xml +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/principles.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/result.geojson +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/specs.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/specs.md.orig +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/specs.pdf +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/specs.tex +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/standard.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/docs/tutorial.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/explorer.py +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/main.py +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/markdown.py +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/meta.py +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/paths.py +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/standard/columns_spec.json +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/standard/data_sheet.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/standard/files_spec.json +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/standard/package_spec.json +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/standard/paralex.package.json +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/standard/paralex.package.json.orig +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/strategies.py +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/templates/__init__.py +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/templates/field.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/templates/package.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/templates/resource.md +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex/validate.py +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex.egg-info/SOURCES.txt +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex.egg-info/dependency_links.txt +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex.egg-info/entry_points.txt +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex.egg-info/requires.txt +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/paralex.egg-info/top_level.txt +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/setup.cfg +0 -0
- {paralex-2.2.6 → paralex-2.2.8}/setup.py +0 -0
|
@@ -167,7 +167,7 @@ def _build_summaries(glottocode_data):
|
|
|
167
167
|
df = pd.read_csv(docs_path / 'known-datasets.csv')
|
|
168
168
|
# Assign a color to each family
|
|
169
169
|
nitems = df['family_id'].nunique()
|
|
170
|
-
col = sns.color_palette("hls",
|
|
170
|
+
col = sns.color_palette("hls", nitems)
|
|
171
171
|
df['color'] = df.groupby(by='family_id').ngroup().apply(lambda x: col[int(x)] if not pd.isna(x) else None)
|
|
172
172
|
|
|
173
173
|
_build_json(df)
|
|
@@ -47,9 +47,16 @@ def read_table(name, package, **kwargs):
|
|
|
47
47
|
|
|
48
48
|
def read_table_from_paths(paths, package, **kwargs):
|
|
49
49
|
paths = paths if isinstance(paths, list) else [paths]
|
|
50
|
+
|
|
51
|
+
# If no indexing column was provided,
|
|
52
|
+
# Reset the index after concatenating
|
|
53
|
+
ignore_index = not (("index_col" in kwargs)
|
|
54
|
+
and kwargs["index_col"])
|
|
55
|
+
|
|
50
56
|
return pd.concat(
|
|
51
57
|
[pd.read_csv(absolute_path(package, path), **kwargs) for path in paths]
|
|
52
|
-
, axis=0)
|
|
58
|
+
, axis=0, ignore_index=ignore_index)
|
|
59
|
+
|
|
53
60
|
|
|
54
61
|
def absolute_path(package, path):
|
|
55
62
|
return Path(package.basepath or "./") / path
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|