Skip to content

Commit

Permalink
script_run: Include portal names in log info (iss #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Mar 16, 2020
1 parent e2099ad commit 8d9788a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DataRepository_patrons/script_run
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,11 @@ if __name__ == '__main__':
df = pd.read_csv(csv_url)

unique_portals = df['Sub-portals'].unique()
unique_portals_name = df['Research Themes'].unique()

# Loop over sub-portals
for portal in unique_portals:
log.info("Working on {} portal".format(portal))
for portal, portal_name in zip(unique_portals, unique_portals_name):
log.info("Working on {} ({}) portal".format(portal_name, portal))
df_sub = df.loc[df['Sub-portals'] == portal]
print(df_sub)

Expand Down

0 comments on commit 8d9788a

Please sign in to comment.