Skip to content

Commit

Permalink
feat: Publication Type Filter (#4)
Browse files Browse the repository at this point in the history
* Filter for scholarly article and conference paper only
  • Loading branch information
cbolles authored Jun 25, 2024
1 parent 10a2c1c commit 2ad396a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/frp/frp/scholarly.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def _filter(self, df: pd.DataFrame, year: int) -> pd.DataFrame:
"""
# Filter for everything on the current year or later
df = df[df['Reporting date 1'].dt.year >= year]
df = df[(df['Scholarly & creative work type'] == 'Scholarly article') | (df['Scholarly & creative work type'] == 'Conference paper (Published)')]
return df

def _augment(self, df: pd.DataFrame) -> pd.DataFrame:
Expand Down

0 comments on commit 2ad396a

Please sign in to comment.