Skip to content

Instantly share code, notes, and snippets.

@djfan
Created November 5, 2017 09:43
Show Gist options
  • Save djfan/cb7eca16d5f8141cf22b08731456c38a to your computer and use it in GitHub Desktop.
Save djfan/cb7eca16d5f8141cf22b08731456c38a to your computer and use it in GitHub Desktop.
# replace 'temp = df[.......'
df.loc[df.Channel == 'Display-TrueView', ['Cost', 'Clicks']] = 0 # should be ['Cost', 'Clicks', ...., 'Video....']
df.loc[df['Partner...'].isin([...])......, 'Cost'] = 0
df.to_excel(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment