Skip to content
Snippets Groups Projects
Commit c260acea authored by Georges Da Costa's avatar Georges Da Costa
Browse files

Removes deprecated messages

parent 21248554
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ import pandas as pd ...@@ -12,6 +12,7 @@ import pandas as pd
import argparse import argparse
import re import re
import shutil import shutil
from io import StringIO
from get_rankings.hash_cache import load_hash_caches, save_hash_caches, default_cache from get_rankings.hash_cache import load_hash_caches, save_hash_caches, default_cache
from get_rankings.tools import levenshtein, download, get_in_ordered_list from get_rankings.tools import levenshtein, download, get_in_ordered_list
...@@ -82,7 +83,7 @@ def get_core_rank(name, year): ...@@ -82,7 +83,7 @@ def get_core_rank(name, year):
table = cc_soup.find_all("table") table = cc_soup.find_all("table")
if len(table) == 0: if len(table) == 0:
return None return None
df = pd.read_html(str(table))[0] df = pd.read_html(StringIO(str(table)))[0]
for index, row in df.iterrows(): for index, row in df.iterrows():
# print(name, year, ' ', row.Title, row.Acronym, row.Rank) # print(name, year, ' ', row.Title, row.Acronym, row.Rank)
...@@ -155,7 +156,7 @@ class Sjr: ...@@ -155,7 +156,7 @@ class Sjr:
if len(table) == 0: if len(table) == 0:
return [] return []
df = pd.read_html(str(table))[0] df = pd.read_html(StringIO(str(table)))[0]
if "Quartile" in df: if "Quartile" in df:
df["Rank"] = [int(val[1]) for val in df.Quartile] df["Rank"] = [int(val[1]) for val in df.Quartile]
else: else:
......
...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh: ...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="get_rankings", name="get_rankings",
version="0.9", version="1.0",
author="Georges Da Costa", author="Georges Da Costa",
author_email="georges.da-costa@irit.fr", author_email="georges.da-costa@irit.fr",
description="DBLP ranking using CORE Rank and SJR", description="DBLP ranking using CORE Rank and SJR",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment