Skip to content

Commit 245e794

Browse files
author
Gerit Wagner
committed
code format
1 parent d5eedeb commit 245e794

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bib_dedupe/prep.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from bib_dedupe.prep_volume import prep_volume
3838
from bib_dedupe.prep_year import prep_year
3939

40-
pd.set_option('future.no_silent_downcasting', True)
40+
pd.set_option("future.no_silent_downcasting", True)
4141

4242
REQUIRED_FIELDS = [ID, ENTRYTYPE, TITLE, AUTHOR, YEAR]
4343
OPTIONAL_FIELDS = [
@@ -135,9 +135,8 @@ def __general_prep(records_df: pd.DataFrame) -> pd.DataFrame:
135135
assert len(missing_fields) == 0, f"Missing required fields: {missing_fields}"
136136

137137
for column in records_df.columns:
138-
records_df[column] = (
139-
records_df[column]
140-
.replace(["#NAME?", "UNKNOWN", ""], np.nan)
138+
records_df[column] = records_df[column].replace(
139+
["#NAME?", "UNKNOWN", ""], np.nan
141140
)
142141
if records_df[TITLE].isnull().any():
143142
verbose_print.print(

0 commit comments

Comments
 (0)