Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ UI_TABLE_COLUMNS = [
|
|
| 82 |
"Год",
|
| 83 |
"OpenAlex",
|
| 84 |
"ORCID",
|
| 85 |
-
"Регистрационный номер",
|
| 86 |
"h-index",
|
| 87 |
"i10-index",
|
| 88 |
"Работ",
|
|
@@ -542,17 +542,17 @@ def run_search(
|
|
| 542 |
df_raw["openalex_url"] = _get("openalex_url", "").map(_norm_openalex_url)
|
| 543 |
df_raw["orcid_url"] = _get("orcid_url", "").map(_norm_orcid_url)
|
| 544 |
|
| 545 |
-
df_raw["h_index"] = pd.to_numeric(_get("h_index",
|
| 546 |
-
df_raw["i10_index"] = pd.to_numeric(_get("i10_index",
|
| 547 |
-
df_raw["works_count"] = pd.to_numeric(_get("works_count",
|
| 548 |
-
df_raw["cited_by_count"] = pd.to_numeric(_get("cited_by_count",
|
| 549 |
else:
|
| 550 |
df_raw["openalex_url"] = ""
|
| 551 |
df_raw["orcid_url"] = ""
|
| 552 |
-
df_raw["h_index"] =
|
| 553 |
-
df_raw["i10_index"] =
|
| 554 |
-
df_raw["works_count"] =
|
| 555 |
-
df_raw["cited_by_count"] =
|
| 556 |
|
| 557 |
# Фильтры "только с ..."
|
| 558 |
if only_openalex:
|
|
|
|
| 82 |
"Год",
|
| 83 |
"OpenAlex",
|
| 84 |
"ORCID",
|
| 85 |
+
# "Регистрационный номер",
|
| 86 |
"h-index",
|
| 87 |
"i10-index",
|
| 88 |
"Работ",
|
|
|
|
| 542 |
df_raw["openalex_url"] = _get("openalex_url", "").map(_norm_openalex_url)
|
| 543 |
df_raw["orcid_url"] = _get("orcid_url", "").map(_norm_orcid_url)
|
| 544 |
|
| 545 |
+
df_raw["h_index"] = pd.to_numeric(_get("h_index", 0), errors="coerce").astype("float64")
|
| 546 |
+
df_raw["i10_index"] = pd.to_numeric(_get("i10_index", 0), errors="coerce").astype("float64")
|
| 547 |
+
df_raw["works_count"] = pd.to_numeric(_get("works_count", 0), errors="coerce").astype("float64")
|
| 548 |
+
df_raw["cited_by_count"] = pd.to_numeric(_get("cited_by_count", 0), errors="coerce").astype("float64")
|
| 549 |
else:
|
| 550 |
df_raw["openalex_url"] = ""
|
| 551 |
df_raw["orcid_url"] = ""
|
| 552 |
+
df_raw["h_index"] = 0
|
| 553 |
+
df_raw["i10_index"] = 0
|
| 554 |
+
df_raw["works_count"] = 0
|
| 555 |
+
df_raw["cited_by_count"] = 0
|
| 556 |
|
| 557 |
# Фильтры "только с ..."
|
| 558 |
if only_openalex:
|