Skip to content

Commit

Permalink
remove unsupported arguments of pandas
Browse files Browse the repository at this point in the history
see #91
  • Loading branch information
whalekeykeeper committed Sep 11, 2023
1 parent 0932862 commit 34ef6d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/scripts/authenticity_institution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/authenticity_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/authenticity_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34ef6d1

Please sign in to comment.