diff --git a/src/scripts/authenticity_institution.py b/src/scripts/authenticity_institution.py index f936d82..d8eaf13 100644 --- a/src/scripts/authenticity_institution.py +++ b/src/scripts/authenticity_institution.py @@ -58,7 +58,7 @@ def read_institution_csv( :param inst_url: the GitHub address of Institution.csv :return: a dictionary """ - df = pd.read_csv(inst_url, error_bad_lines=False) + df = pd.read_csv(inst_url) df = df.fillna("") ins_dict = {} place_dict = read_space_csv() diff --git a/src/scripts/authenticity_person.py b/src/scripts/authenticity_person.py index 99df2e4..ddc533b 100644 --- a/src/scripts/authenticity_person.py +++ b/src/scripts/authenticity_person.py @@ -61,7 +61,7 @@ def read_person_csv( :param person_url :return: a dictionary """ - df = pd.read_csv(person_url, error_bad_lines=False).fillna("") + df = pd.read_csv(person_url).fillna("") person_dict = {} place_dict = read_space_csv() for index, row in df.iterrows(): @@ -332,7 +332,7 @@ def chunks(person_dict, SIZE=30): def get_matched_by_wikipedia_url( person_url="https://raw.githubusercontent.com/readchina/ReadAct/master/csv/data/Person.csv", ): - df = pd.read_csv(person_url, error_bad_lines=False) + df = pd.read_csv(person_url) person_matched_by_wikipedia = {} count = 0 diff --git a/src/scripts/authenticity_space.py b/src/scripts/authenticity_space.py index f4d00e7..a144100 100644 --- a/src/scripts/authenticity_space.py +++ b/src/scripts/authenticity_space.py @@ -45,7 +45,7 @@ def read_space_csv( :param space_url :return: a dictionary """ - df = pd.read_csv(space_url, error_bad_lines=False) + df = pd.read_csv(space_url) geo_code_dict = {} for index, row in df.iterrows(): # consider the case that if there are identical space_id in csv file