Skip to content

Instantly share code, notes, and snippets.

@ccerv1
Created August 15, 2019 13:46
Show Gist options
  • Select an option

  • Save ccerv1/a3672bb9e4fbdc952c4fa77068433d48 to your computer and use it in GitHub Desktop.

Select an option

Save ccerv1/a3672bb9e4fbdc952c4fa77068433d48 to your computer and use it in GitHub Desktop.
Convert nominal to real coffee prices
df['C Market (Real)'] = df['C Market'] * df['FX Index'] * df['Inflation Index']
df.rename(columns={'C Market': 'C Market (Nominal)'}, inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment