79683416

Date: 2025-06-29 01:12:38
Score: 1
Natty:
Report link

I was able to get this to work using .apply

def get_Funding_info(row):
    return funding_df.loc[( (funding_df['ID']==row['ID']) & (funding_df['Year']==row['Year_Funding']) ), 'Funding'].squeeze()

combined_df['Funding'] = combined_df.apply(get_Funding_info, axis=1)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: eschares